File tree Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -120,18 +120,16 @@ export const ToggleSwitch = memo(
120
120
checked = { props_checked ?? checked }
121
121
name = { name }
122
122
/>
123
- { label && (
124
- < label
125
- className = { cx ( fr . cx ( "fr-toggle__label" ) , classes . label ) }
126
- htmlFor = { inputId }
127
- { ...( showCheckedHint && {
128
- "data-fr-checked-label" : t ( "checked" ) ,
129
- "data-fr-unchecked-label" : t ( "unchecked" )
130
- } ) }
131
- >
132
- { label }
133
- </ label >
134
- ) }
123
+ < label
124
+ className = { cx ( fr . cx ( "fr-toggle__label" ) , classes . label ) }
125
+ htmlFor = { inputId }
126
+ { ...( showCheckedHint && {
127
+ "data-fr-checked-label" : t ( "checked" ) ,
128
+ "data-fr-unchecked-label" : t ( "unchecked" )
129
+ } ) }
130
+ >
131
+ { label }
132
+ </ label >
135
133
{ helperText && (
136
134
< p className = { cx ( fr . cx ( "fr-hint-text" ) , classes . hint ) } id = { hintId } >
137
135
{ helperText }
You can’t perform that action at this time.
0 commit comments