1
0
Fork 1
mirror of https://github.com/Vendicated/Vencord.git synced 2025-01-25 08:46:25 +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>;
},
renderRememberButton(statue: DiscordStatus) {
return <Button onClick={() => {
settings.store.StatusPresets[statue.text] = statue;
Toasts.show({
message: "Successfully Saved Status",
type: Toasts.Type.SUCCESS,
id: Toasts.genId()
});
}} style={{ marginRight: "20px" }}>Remember</Button>;
return <Button
look={Button.Looks.LINK}
color={Button.Colors.WHITE}
size={Button.Sizes.MEDIUM}
onClick={() => {
settings.store.StatusPresets[statue.text] = statue;
Toasts.show({
message: "Successfully Saved Status",
type: Toasts.Type.SUCCESS,
id: Toasts.genId()
});
}}
style={{ marginRight: "20px" }}
>Remember</Button>;
},
startAt: StartAt.WebpackReady
});