Add wrapper to Don't show this again checkbox

This commit is contained in:
Sqaaakoi 2024-10-12 07:20:58 +13:00
parent 9a02e43cfb
commit fb6e9c9bef
No known key found for this signature in database
2 changed files with 12 additions and 9 deletions

View file

@ -10,6 +10,7 @@
list-style: disc;
}
.vc-newPluginsManager-disable-wrapper,
.vc-newPluginsManager-close > div {
display: flex;
}

View file

@ -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>;