From c227282ce0968ad45560288d3b7335aab3c78b2a Mon Sep 17 00:00:00 2001 From: Luke Date: Sat, 29 Oct 2022 12:46:22 +0200 Subject: [PATCH] refactor(web/menu): update checkbox styling --- web/src/features/dev/debug/menu.ts | 1 + web/src/features/menu/list/CustomCheckbox.tsx | 28 +++++++++---------- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/web/src/features/dev/debug/menu.ts b/web/src/features/dev/debug/menu.ts index ad8a91a..29a5b63 100644 --- a/web/src/features/dev/debug/menu.ts +++ b/web/src/features/dev/debug/menu.ts @@ -14,6 +14,7 @@ export const debugMenu = () => { label: 'Option 2', icon: 'basket-shopping', description: 'Tooltip description 1', + checked: true, }, { label: 'Vehicle class', diff --git a/web/src/features/menu/list/CustomCheckbox.tsx b/web/src/features/menu/list/CustomCheckbox.tsx index a2af255..1a28e0c 100644 --- a/web/src/features/menu/list/CustomCheckbox.tsx +++ b/web/src/features/menu/list/CustomCheckbox.tsx @@ -4,33 +4,33 @@ const CustomCheckbox: React.FC<{ checked: boolean }> = ({ checked }) => { const { getCheckboxProps, getInputProps, htmlProps } = useCheckbox(); return ( {checked && ( - - + + )} - ) + ); }; export default CustomCheckbox;