From e3a1beaf44a91cba8036177a23ad2cb64175d27f Mon Sep 17 00:00:00 2001
From: thororen1234 <78185467+thororen1234@users.noreply.github.com>
Date: Mon, 18 May 2026 10:12:30 -0400
Subject: [PATCH] update donor and translate modals
---
src/plugins/_api/badges/modals.tsx | 87 ++++++++++++++++--------------
1 file changed, 48 insertions(+), 39 deletions(-)
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
-
-
-
+
+ }
+ >
+
-
-
+
+
-
-
+
+
));
}