Skip to content

Commit

Permalink
the shiggy wiggy (Vendicated#270)
Browse files Browse the repository at this point in the history
  • Loading branch information
MeguminSama authored Nov 28, 2022
1 parent 36b7878 commit c583bad
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions src/components/VencordSettings/VencordTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,15 @@ function VencordSettings() {
const [settingsDir, , settingsDirPending] = useAwaiter(() => VencordNative.ipc.invoke<string>(IpcEvents.GET_SETTINGS_DIR), "Loading...");
const settings = useSettings();

const [donateImage] = React.useState(
Math.random() > 0.5
? "https://cdn.discordapp.com/emojis/1026533090627174460.png"
: "https://media.discordapp.net/stickers/1039992459209490513.png"
);

return (
<React.Fragment>
<DonateCard />
<DonateCard image={donateImage} />
<Forms.FormSection title="Quick Actions">
<Card className={st("QuickActionCard")}>
{IS_WEB ? (
Expand Down Expand Up @@ -104,8 +110,11 @@ function VencordSettings() {
}


interface DonateCardProps {
image: string;
}

function DonateCard() {
function DonateCard({ image }: DonateCardProps) {
return (
<Card style={{
padding: "1em",
Expand All @@ -123,8 +132,9 @@ function DonateCard() {
</div>
<img
role="presentation"
src="https://cdn.discordapp.com/emojis/1026533090627174460.png"
src={image}
alt=""
height={128}
style={{ marginLeft: "auto", transform: "rotate(10deg)" }}
/>
</Card>
Expand Down

0 comments on commit c583bad

Please sign in to comment.