mirror of
https://github.com/Sqaaakoi/vc-newPluginsManager.git
synced 2024-11-16 14:54:37 -05:00
Add wrapper to Don't show this again checkbox
This commit is contained in:
parent
9a02e43cfb
commit
fb6e9c9bef
2 changed files with 12 additions and 9 deletions
|
@ -10,6 +10,7 @@
|
|||
list-style: disc;
|
||||
}
|
||||
|
||||
.vc-newPluginsManager-disable-wrapper,
|
||||
.vc-newPluginsManager-close > div {
|
||||
display: flex;
|
||||
}
|
||||
|
|
|
@ -133,15 +133,17 @@ export function NewPluginsModal({ modalProps, newPlugins, newSettings }: { modal
|
|||
/>
|
||||
</Flex>
|
||||
<Flex direction={Flex.Direction.HORIZONTAL}>
|
||||
<Checkbox
|
||||
type={Checkbox.Types.INVERTED}
|
||||
value={!settings?.plugins?.NewPluginsManager?.enabled}
|
||||
onChange={() => {
|
||||
Settings.plugins.NewPluginsManager.enabled = !settings?.plugins?.NewPluginsManager?.enabled;
|
||||
}}
|
||||
>
|
||||
<Text>Don't show this again</Text>
|
||||
</Checkbox>
|
||||
<div className="vc-newPluginsManager-disable-wrapper">
|
||||
<Checkbox
|
||||
type={Checkbox.Types.INVERTED}
|
||||
value={!settings?.plugins?.NewPluginsManager?.enabled}
|
||||
onChange={() => {
|
||||
Settings.plugins.NewPluginsManager.enabled = !settings?.plugins?.NewPluginsManager?.enabled;
|
||||
}}
|
||||
>
|
||||
<Text>Don't show this again</Text>
|
||||
</Checkbox>
|
||||
</div>
|
||||
</Flex>
|
||||
</ModalFooter>
|
||||
</ModalRoot>;
|
||||
|
|
Loading…
Reference in a new issue