From 6a84c5f521016056225829e926d2ec590e3287cc Mon Sep 17 00:00:00 2001 From: Ruben Thoms Date: Mon, 11 Sep 2023 13:45:50 +0200 Subject: [PATCH 1/5] Fixed/improved multiple components --- .../Settings/private-components/setting.tsx | 27 ++++++++++--------- .../src/lib/components/Checkbox/checkbox.tsx | 2 +- .../lib/components/RadioGroup/radioGroup.tsx | 16 +++++------ .../private-components/tag.tsx | 14 +++++++--- .../SmartNodeSelector/smartNodeSelector.tsx | 2 +- 5 files changed, 35 insertions(+), 26 deletions(-) diff --git a/frontend/src/framework/internal/components/Settings/private-components/setting.tsx b/frontend/src/framework/internal/components/Settings/private-components/setting.tsx index f01ab1765..f034cd3ab 100644 --- a/frontend/src/framework/internal/components/Settings/private-components/setting.tsx +++ b/frontend/src/framework/internal/components/Settings/private-components/setting.tsx @@ -7,6 +7,7 @@ import { ErrorBoundary } from "@framework/internal/components/ErrorBoundary"; import { useImportState } from "@framework/internal/hooks/moduleHooks"; import { Cog6ToothIcon } from "@heroicons/react/20/solid"; import { CircularProgress } from "@lib/components/CircularProgress"; +import { resolveClassNames } from "@lib/utils/resolveClassNames"; type SettingProps = { moduleInstance: ModuleInstance; @@ -71,10 +72,10 @@ export const Setting: React.FC = (props) => { return (
@@ -86,14 +87,16 @@ export const Setting: React.FC = (props) => { {props.moduleInstance.getTitle()}
-
- +
+
+ +
diff --git a/frontend/src/lib/components/Checkbox/checkbox.tsx b/frontend/src/lib/components/Checkbox/checkbox.tsx index d3a639cc9..f2d1649a9 100644 --- a/frontend/src/lib/components/Checkbox/checkbox.tsx +++ b/frontend/src/lib/components/Checkbox/checkbox.tsx @@ -50,7 +50,7 @@ export const Checkbox: React.FC = (props) => { {props.label && ( diff --git a/frontend/src/lib/components/RadioGroup/radioGroup.tsx b/frontend/src/lib/components/RadioGroup/radioGroup.tsx index 1c5f78562..cc262e619 100644 --- a/frontend/src/lib/components/RadioGroup/radioGroup.tsx +++ b/frontend/src/lib/components/RadioGroup/radioGroup.tsx @@ -35,32 +35,32 @@ type RadioProps = { const Radio: React.FC = (props) => { return ( -