From 8c2e91339616db6c1d3c45519903c0514bc1dc9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Vall=C3=A9?= Date: Wed, 11 Dec 2024 11:15:36 +0100 Subject: [PATCH] MOON-246: Fix lint error --- src/components/Field/Field.tsx | 13 ++++++++----- src/components/Field/FieldBoolean/FieldBoolean.tsx | 10 ++++++---- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/src/components/Field/Field.tsx b/src/components/Field/Field.tsx index 129fcc6a..ac183b88 100644 --- a/src/components/Field/Field.tsx +++ b/src/components/Field/Field.tsx @@ -5,6 +5,7 @@ import type {FieldProps} from './Field.types'; import {Typography} from '~/components'; export const Field = React.forwardRef(({ + id, label, helper, chips, @@ -18,6 +19,7 @@ export const Field = React.forwardRef(({ return (
(({ >
- {label} + {label} {chips &&
{chips} @@ -46,11 +48,12 @@ export const Field = React.forwardRef(({ )) : (buttons && ) )} -
} +
+ }
- - {helper} - + {helper && + {helper} + }
{children} {hasError && errorMessage && diff --git a/src/components/Field/FieldBoolean/FieldBoolean.tsx b/src/components/Field/FieldBoolean/FieldBoolean.tsx index 577f6776..1b2868f5 100644 --- a/src/components/Field/FieldBoolean/FieldBoolean.tsx +++ b/src/components/Field/FieldBoolean/FieldBoolean.tsx @@ -20,6 +20,7 @@ export const FieldBoolean = React.forwardRef( return (
( >
-
+
- {label} + {label} {chips &&
{chips} @@ -55,8 +56,9 @@ export const FieldBoolean = React.forwardRef(
}
- - {helper} + {helper && + {helper} + } {hasError && errorMessage && {errorMessage} }