aboutsummaryrefslogtreecommitdiff
path: root/src/components/Settings.tsx
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2022-11-17 00:21:13 +0100
committerVendicated <vendicated@riseup.net>2022-11-17 00:21:20 +0100
commit410613726b7f2da85d653bbf0e9cb662f1abd32e (patch)
treef424d91dc7d93e65431caf28b873c1a0a4a548cf /src/components/Settings.tsx
parent8b3f290e3ce1b166a3a15019b1f3504e015464c5 (diff)
downloadVencord-410613726b7f2da85d653bbf0e9cb662f1abd32e.tar.gz
Vencord-410613726b7f2da85d653bbf0e9cb662f1abd32e.tar.bz2
Vencord-410613726b7f2da85d653bbf0e9cb662f1abd32e.zip
Donor Badges && Add donate info to settings
Diffstat (limited to 'src/components/Settings.tsx')
-rw-r--r--src/components/Settings.tsx28
1 files changed, 25 insertions, 3 deletions
diff --git a/src/components/Settings.tsx b/src/components/Settings.tsx
index 363b1df..fc25901 100644
--- a/src/components/Settings.tsx
+++ b/src/components/Settings.tsx
@@ -20,7 +20,8 @@ import { useSettings } from "../api/settings";
import { ChangeList } from "../utils/ChangeList";
import IpcEvents from "../utils/IpcEvents";
import { useAwaiter } from "../utils/misc";
-import { Alerts, Button, Forms, Margins, Parser, React, Switch } from "../webpack/common";
+import { Alerts, Button, Card, Forms, Margins, Parser, React, Switch } from "../webpack/common";
+import DonateButton from "./DonateButton";
import ErrorBoundary from "./ErrorBoundary";
import { Flex } from "./Flex";
import { handleComponentFailed } from "./handleComponentFailed";
@@ -52,15 +53,36 @@ export default ErrorBoundary.wrap(function Settings() {
return (
<Forms.FormSection tag="h1" title="Vencord">
+ <Card style={{
+ padding: "1em",
+ display: "flex",
+ flexDirection: "row",
+ marginBottom: "1em"
+ }}>
+ <div>
+ <Forms.FormTitle tag="h5">Support the Project</Forms.FormTitle>
+ <Forms.FormText>
+ Please consider supporting the Development of Vencord by donating!
+ </Forms.FormText>
+ <DonateButton style={{ transform: "translateX(-1em)" }} />
+ </div>
+ <img
+ role="presentation"
+ src="https://cdn.discordapp.com/emojis/1026533090627174460.png"
+ alt=""
+ style={{ marginLeft: "auto", transform: "rotate(10deg)" }}
+ />
+ </Card>
+
<Forms.FormTitle tag="h5">
Settings
</Forms.FormTitle>
- <Forms.FormText>
+ <Forms.FormText className={Margins.marginBottom8}>
Settings Directory: <code style={{ userSelect: "text", cursor: "text" }}>{settingsDir}</code>
</Forms.FormText>
- {!IS_WEB && <Flex className={Margins.marginBottom20} style={{ marginTop: 8 }}>
+ {!IS_WEB && <Flex className={Margins.marginBottom20}>
<Button
onClick={() => window.DiscordNative.app.relaunch()}
size={Button.Sizes.SMALL}