diff options
author | Vendicated <vendicated@riseup.net> | 2022-11-17 00:21:13 +0100 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2022-11-17 00:21:20 +0100 |
commit | 410613726b7f2da85d653bbf0e9cb662f1abd32e (patch) | |
tree | f424d91dc7d93e65431caf28b873c1a0a4a548cf /src/components/DonateButton.tsx | |
parent | 8b3f290e3ce1b166a3a15019b1f3504e015464c5 (diff) | |
download | Vencord-410613726b7f2da85d653bbf0e9cb662f1abd32e.tar.gz Vencord-410613726b7f2da85d653bbf0e9cb662f1abd32e.tar.bz2 Vencord-410613726b7f2da85d653bbf0e9cb662f1abd32e.zip |
Donor Badges && Add donate info to settings
Diffstat (limited to 'src/components/DonateButton.tsx')
-rw-r--r-- | src/components/DonateButton.tsx | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/components/DonateButton.tsx b/src/components/DonateButton.tsx new file mode 100644 index 0000000..6aae8ad --- /dev/null +++ b/src/components/DonateButton.tsx @@ -0,0 +1,37 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. +*/ + +import IpcEvents from "../utils/IpcEvents"; +import { Button } from "../webpack/common"; +import { Heart } from "./Heart"; + +export default function DonateButton(props: any) { + return ( + <Button + {...props} + look={Button.Looks.LINK} + color={Button.Colors.TRANSPARENT} + onClick={() => + VencordNative.ipc.invoke(IpcEvents.OPEN_EXTERNAL, "https://github.com/sponsors/Vendicated") + } + > + <Heart /> + Donate + </Button> + ); +} |