From 4a447c74ef0a865a2426deb2dcd2abc7577c2376 Mon Sep 17 00:00:00 2001 From: khcrysalis Date: Thu, 6 Feb 2025 11:37:18 -0800 Subject: [PATCH 1/4] feat: add donor and contributor cards in vencord settings (#3049) Co-authored-by: Cookie <52550063+Covkie@users.noreply.github.com> Co-authored-by: v --- src/components/DonateButton.tsx | 12 ++- src/components/Heart.tsx | 10 +- .../VencordSettings/SpecialCard.tsx | 77 ++++++++++++++++ src/components/VencordSettings/VencordTab.tsx | 90 ++++++++++++------ .../VencordSettings/quickActions.css | 21 +++-- .../VencordSettings/specialCard.css | 92 +++++++++++++++++++ src/components/iconStyles.css | 5 + src/plugins/_core/supportHelper.tsx | 11 +-- src/utils/constants.ts | 10 ++ src/webpack/common/types/components.d.ts | 6 +- 10 files changed, 286 insertions(+), 48 deletions(-) create mode 100644 src/components/VencordSettings/SpecialCard.tsx create mode 100644 src/components/VencordSettings/specialCard.css diff --git a/src/components/DonateButton.tsx b/src/components/DonateButton.tsx index c027fcf27..ee2f3ed38 100644 --- a/src/components/DonateButton.tsx +++ b/src/components/DonateButton.tsx @@ -17,16 +17,22 @@ */ import { Button } from "@webpack/common"; +import { ButtonProps } from "@webpack/types"; import { Heart } from "./Heart"; -export default function DonateButton(props: any) { +export default function DonateButton({ + look = Button.Looks.LINK, + color = Button.Colors.TRANSPARENT, + ...props +}: Partial) { return (