the shiggy wiggy (#270)

This commit is contained in:
megumin 2022-11-28 18:59:42 +00:00 committed by GitHub
parent 36b787812e
commit c583bad6bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -30,9 +30,15 @@ function VencordSettings() {
const [settingsDir, , settingsDirPending] = useAwaiter(() => VencordNative.ipc.invoke<string>(IpcEvents.GET_SETTINGS_DIR), "Loading..."); const [settingsDir, , settingsDirPending] = useAwaiter(() => VencordNative.ipc.invoke<string>(IpcEvents.GET_SETTINGS_DIR), "Loading...");
const settings = useSettings(); 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 ( return (
<React.Fragment> <React.Fragment>
<DonateCard /> <DonateCard image={donateImage} />
<Forms.FormSection title="Quick Actions"> <Forms.FormSection title="Quick Actions">
<Card className={st("QuickActionCard")}> <Card className={st("QuickActionCard")}>
{IS_WEB ? ( {IS_WEB ? (
@ -104,8 +110,11 @@ function VencordSettings() {
} }
interface DonateCardProps {
image: string;
}
function DonateCard() { function DonateCard({ image }: DonateCardProps) {
return ( return (
<Card style={{ <Card style={{
padding: "1em", padding: "1em",
@ -123,8 +132,9 @@ function DonateCard() {
</div> </div>
<img <img
role="presentation" role="presentation"
src="https://cdn.discordapp.com/emojis/1026533090627174460.png" src={image}
alt="" alt=""
height={128}
style={{ marginLeft: "auto", transform: "rotate(10deg)" }} style={{ marginLeft: "auto", transform: "rotate(10deg)" }}
/> />
</Card> </Card>