mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-13 16:43:04 -04:00
This commit is contained in:
parent
bb8a68b45e
commit
4a6e009a00
2 changed files with 21 additions and 1 deletions
|
@ -22,6 +22,25 @@ import { ButtonProps } from "@webpack/types";
|
||||||
|
|
||||||
import { Heart } from "./Heart";
|
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({
|
export default function DonateButton({
|
||||||
look = Button.Looks.LINK,
|
look = Button.Looks.LINK,
|
||||||
color = Button.Colors.TRANSPARENT,
|
color = Button.Colors.TRANSPARENT,
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
import "./fixDiscordBadgePadding.css";
|
import "./fixDiscordBadgePadding.css";
|
||||||
|
|
||||||
import { _getBadges, BadgePosition, BadgeUserArgs, ProfileBadge } from "@api/Badges";
|
import { _getBadges, BadgePosition, BadgeUserArgs, ProfileBadge } from "@api/Badges";
|
||||||
|
import VCDonateButton from "@components/DonateButton";
|
||||||
import DonateButton from "@components/DonateButton";
|
import DonateButton from "@components/DonateButton";
|
||||||
import ErrorBoundary from "@components/ErrorBoundary";
|
import ErrorBoundary from "@components/ErrorBoundary";
|
||||||
import { Flex } from "@components/Flex";
|
import { Flex } from "@components/Flex";
|
||||||
|
@ -213,7 +214,7 @@ export default definePlugin({
|
||||||
</ModalContent>
|
</ModalContent>
|
||||||
<ModalFooter>
|
<ModalFooter>
|
||||||
<Flex style={{ width: "100%", justifyContent: "center" }}>
|
<Flex style={{ width: "100%", justifyContent: "center" }}>
|
||||||
<DonateButton />
|
<VCDonateButton />
|
||||||
</Flex>
|
</Flex>
|
||||||
</ModalFooter>
|
</ModalFooter>
|
||||||
</ModalRoot>
|
</ModalRoot>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue