diff --git a/src/plugins/_api/badges/modals.tsx b/src/plugins/_api/badges/modals.tsx
index 135bb54ac..4fedb47fc 100644
--- a/src/plugins/_api/badges/modals.tsx
+++ b/src/plugins/_api/badges/modals.tsx
@@ -6,22 +6,24 @@
import ErrorBoundary from "@components/ErrorBoundary";
import { Flex } from "@components/Flex";
-import { HeadingPrimary } from "@components/Heading";
+import { Heading } from "@components/Heading";
import { Heart } from "@components/Heart";
import { Paragraph } from "@components/Paragraph";
import { DonateButton, TranslateButton } from "@components/settings";
import { Margins } from "@utils/margins";
-import { closeModal, ModalContent, ModalFooter, ModalHeader, ModalRoot, openModal } from "@utils/modal";
+import { Modal, openModal } from "@webpack/common";
export function VencordDonorModal() {
- const modalKey = openModal(props => (
+ openModal(props => (
{
- closeModal(modalKey);
+ props.onClose();
VencordNative.native.openExternal("https://github.com/sponsors/Vendicated");
}}>
-
-
-
Vencord Donor
-
-
-
+
+ }
+ >
+
-
-
+
+
-
-
+
+
));
}
export function EquicordDonorModal() {
- const modalKey = openModal(props => (
+ openModal(props => (
{
- closeModal(modalKey);
+ props.onClose();
VencordNative.native.openExternal("https://github.com/sponsors/thororen1234");
}}>
-
-
-
Equicord Donor
-
-
-
+
+ }
+ >
+
-
-
+
+
-
-
-
+
+
+
));
}
export function EquicordTranslatorModal() {
- const modalKey = openModal(props => (
+ openModal(props => (
{
- closeModal(modalKey);
+ props.onClose();
}}>
-
-
-
Equicord Translator
-
-
-
+
+ }
+ >
+
-
-
+
+
-
-
+
+
));
}