From 4a6e009a008834cacae912689c579845e0261dd6 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Sat, 19 Apr 2025 10:45:01 -0400 Subject: [PATCH] Fix Dono Button --- src/components/DonateButton.tsx | 19 +++++++++++++++++++ src/plugins/_api/badges/index.tsx | 3 ++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/src/components/DonateButton.tsx b/src/components/DonateButton.tsx index 4139dd31..9ab439ee 100644 --- a/src/components/DonateButton.tsx +++ b/src/components/DonateButton.tsx @@ -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) { + return ( + + ); +} + export default function DonateButton({ look = Button.Looks.LINK, color = Button.Colors.TRANSPARENT, diff --git a/src/plugins/_api/badges/index.tsx b/src/plugins/_api/badges/index.tsx index 8b5ff999..b4f26206 100644 --- a/src/plugins/_api/badges/index.tsx +++ b/src/plugins/_api/badges/index.tsx @@ -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({ - +