Skip to content

Commit 651816a

Browse files
committed
Fmt
1 parent 926148c commit 651816a

File tree

1 file changed

+19
-16
lines changed

1 file changed

+19
-16
lines changed

src/shared/Fieldset.tsx

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -151,22 +151,25 @@ export const Fieldset = memo(
151151
</legend>
152152
)}
153153
<div className={cx(fr.cx("fr-fieldset__content"), classes.content)}>
154-
{options.map(({ label, hintText, nativeInputProps }, i) =>
155-
<div className={fr.cx(`fr-${type}-group`, small && `fr-${type}-group--sm`)} key={i}>
156-
<input
157-
type={type}
158-
id={getInputId(i)}
159-
name={radioName}
160-
{...nativeInputProps}
161-
/>
162-
<label className={fr.cx("fr-label")} htmlFor={getInputId(i)}>
163-
{label}
164-
{hintText !== undefined && (
165-
<span className={fr.cx("fr-hint-text")}>{hintText}</span>
166-
)}
167-
</label>
168-
</div>
169-
)}
154+
{options.map(({ label, hintText, nativeInputProps }, i) => (
155+
<div
156+
className={fr.cx(`fr-${type}-group`, small && `fr-${type}-group--sm`)}
157+
key={i}
158+
>
159+
<input
160+
type={type}
161+
id={getInputId(i)}
162+
name={radioName}
163+
{...nativeInputProps}
164+
/>
165+
<label className={fr.cx("fr-label")} htmlFor={getInputId(i)}>
166+
{label}
167+
{hintText !== undefined && (
168+
<span className={fr.cx("fr-hint-text")}>{hintText}</span>
169+
)}
170+
</label>
171+
</div>
172+
))}
170173
</div>
171174
{state !== "default" && (
172175
<p

0 commit comments

Comments
 (0)