1
0
Fork 1
mirror of https://github.com/Vendicated/Vencord.git synced 2025-01-26 09:16:24 +00:00

remember button redesgin

This commit is contained in:
programminglaboratorys 2024-09-30 08:01:04 +03:00
parent f5f79019fa
commit 8ed2038306

View file

@ -145,14 +145,20 @@ export default definePlugin({
</ErrorBoundary>; </ErrorBoundary>;
}, },
renderRememberButton(statue: DiscordStatus) { renderRememberButton(statue: DiscordStatus) {
return <Button onClick={() => { return <Button
settings.store.StatusPresets[statue.text] = statue; look={Button.Looks.LINK}
Toasts.show({ color={Button.Colors.WHITE}
message: "Successfully Saved Status", size={Button.Sizes.MEDIUM}
type: Toasts.Type.SUCCESS, onClick={() => {
id: Toasts.genId() settings.store.StatusPresets[statue.text] = statue;
}); Toasts.show({
}} style={{ marginRight: "20px" }}>Remember</Button>; message: "Successfully Saved Status",
type: Toasts.Type.SUCCESS,
id: Toasts.genId()
});
}}
style={{ marginRight: "20px" }}
>Remember</Button>;
}, },
startAt: StartAt.WebpackReady startAt: StartAt.WebpackReady
}); });