From 32d12369c25061c8de12499c60827e98104a10e3 Mon Sep 17 00:00:00 2001 From: Ivan <8611739+IRBorisov@users.noreply.github.com> Date: Fri, 20 Dec 2024 13:36:31 +0300 Subject: [PATCH] M: Improve checkbox structure --- rsconcept/frontend/src/components/ui/Checkbox.tsx | 9 +++------ .../frontend/src/components/ui/CheckboxTristate.tsx | 13 +++---------- 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/rsconcept/frontend/src/components/ui/Checkbox.tsx b/rsconcept/frontend/src/components/ui/Checkbox.tsx index de74e8e7..5b221673 100644 --- a/rsconcept/frontend/src/components/ui/Checkbox.tsx +++ b/rsconcept/frontend/src/components/ui/Checkbox.tsx @@ -65,7 +65,8 @@ function Checkbox({
- {value ? ( -
- -
- ) : null} + {value ? : null}
{label ? {label} : null} diff --git a/rsconcept/frontend/src/components/ui/CheckboxTristate.tsx b/rsconcept/frontend/src/components/ui/CheckboxTristate.tsx index 0416375d..b49ec701 100644 --- a/rsconcept/frontend/src/components/ui/CheckboxTristate.tsx +++ b/rsconcept/frontend/src/components/ui/CheckboxTristate.tsx @@ -66,6 +66,7 @@ function CheckboxTristate({
- {value ? ( -
- -
- ) : null} - {value == null ? ( -
- -
- ) : null} + {value ? : null} + {value == null ? : null}
{label ? {label} : null}