From 437807a9e00ded382d807bfeba245320c1d1e9d6 Mon Sep 17 00:00:00 2001 From: ajnart Date: Sat, 11 Jun 2022 19:43:01 +0200 Subject: [PATCH] :lipstick: Change module enabler layout --- src/components/Settings/ModuleEnabler.tsx | 43 ++++++++++++----------- 1 file changed, 23 insertions(+), 20 deletions(-) diff --git a/src/components/Settings/ModuleEnabler.tsx b/src/components/Settings/ModuleEnabler.tsx index 14d8a2f08..fe9b9f938 100644 --- a/src/components/Settings/ModuleEnabler.tsx +++ b/src/components/Settings/ModuleEnabler.tsx @@ -1,4 +1,4 @@ -import { Group, Switch } from '@mantine/core'; +import { Checkbox, Group, SimpleGrid, Title } from '@mantine/core'; import * as Modules from '../modules'; import { useConfig } from '../../tools/state'; @@ -7,26 +7,29 @@ export default function ModuleEnabler(props: any) { const modules = Object.values(Modules).map((module) => module); return ( - {modules.map((module) => ( - { - setConfig({ - ...config, - modules: { - ...config.modules, - [module.title]: { - ...config.modules?.[module.title], - enabled: e.currentTarget.checked, + Module enabler + + {modules.map((module) => ( + { + setConfig({ + ...config, + modules: { + ...config.modules, + [module.title]: { + ...config.modules?.[module.title], + enabled: e.currentTarget.checked, + }, }, - }, - }); - }} - /> - ))} + }); + }} + /> + ))} + ); }