Fix Dono Button
Some checks are pending
Test / Test (push) Waiting to run

This commit is contained in:
thororen1234 2025-04-19 10:45:01 -04:00
parent bb8a68b45e
commit 4a6e009a00
No known key found for this signature in database
2 changed files with 21 additions and 1 deletions

View file

@ -22,6 +22,25 @@ import { ButtonProps } from "@webpack/types";
import { Heart } from "./Heart";
export default function VCDonateButton({
look = Button.Looks.LINK,
color = Button.Colors.TRANSPARENT,
...props
}: Partial<ButtonProps>) {
return (
<Button
{...props}
look={look}
color={color}
onClick={() => VencordNative.native.openExternal("https://github.com/sponsors/Vendicated")}
innerClassName="vc-donate-button"
>
<Heart />
Donate
</Button>
);
}
export default function DonateButton({
look = Button.Looks.LINK,
color = Button.Colors.TRANSPARENT,

View file

@ -19,6 +19,7 @@
import "./fixDiscordBadgePadding.css";
import { _getBadges, BadgePosition, BadgeUserArgs, ProfileBadge } from "@api/Badges";
import VCDonateButton from "@components/DonateButton";
import DonateButton from "@components/DonateButton";
import ErrorBoundary from "@components/ErrorBoundary";
import { Flex } from "@components/Flex";
@ -213,7 +214,7 @@ export default definePlugin({
</ModalContent>
<ModalFooter>
<Flex style={{ width: "100%", justifyContent: "center" }}>
<DonateButton />
<VCDonateButton />
</Flex>
</ModalFooter>
</ModalRoot>