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:
parent
f5f79019fa
commit
8ed2038306
1 changed files with 14 additions and 8 deletions
|
@ -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
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue