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; list-style: disc;
} }
.vc-newPluginsManager-disable-wrapper,
.vc-newPluginsManager-close > div { .vc-newPluginsManager-close > div {
display: flex; display: flex;
} }

View file

@ -133,15 +133,17 @@ export function NewPluginsModal({ modalProps, newPlugins, newSettings }: { modal
/> />
</Flex> </Flex>
<Flex direction={Flex.Direction.HORIZONTAL}> <Flex direction={Flex.Direction.HORIZONTAL}>
<Checkbox <div className="vc-newPluginsManager-disable-wrapper">
type={Checkbox.Types.INVERTED} <Checkbox
value={!settings?.plugins?.NewPluginsManager?.enabled} type={Checkbox.Types.INVERTED}
onChange={() => { value={!settings?.plugins?.NewPluginsManager?.enabled}
Settings.plugins.NewPluginsManager.enabled = !settings?.plugins?.NewPluginsManager?.enabled; onChange={() => {
}} Settings.plugins.NewPluginsManager.enabled = !settings?.plugins?.NewPluginsManager?.enabled;
> }}
<Text>Don't show this again</Text> >
</Checkbox> <Text>Don't show this again</Text>
</Checkbox>
</div>
</Flex> </Flex>
</ModalFooter> </ModalFooter>
</ModalRoot>; </ModalRoot>;