File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
templates/component-mapper/src/files Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -21,23 +21,24 @@ const SingleCheckbox = (props) => {
21
21
return (
22
22
< React . Fragment >
23
23
< label htmlFor = { name } > { label } </ label >
24
- < input { ...input } type = "checkbox" disabled = { isDisabled } />
24
+ < input { ...input } id = { name } type = "checkbox" disabled = { isDisabled } />
25
25
</ React . Fragment >
26
26
) ;
27
27
} ;
28
28
29
- const SingleCheckboxInCommon = ( { label, isDisabled, ...props } ) => (
29
+ const SingleCheckboxInCommon = ( { label, isDisabled, id , ...props } ) => (
30
30
< React . Fragment >
31
- < label htmlFor = { props . name } > { label } </ label >
32
- < input { ...props } type = "checkbox" disabled = { isDisabled } />
31
+ < label htmlFor = { id } > { label } </ label >
32
+ < input { ...props } id = { id } type = "checkbox" disabled = { isDisabled } />
33
33
</ React . Fragment >
34
34
) ;
35
35
36
36
SingleCheckboxInCommon . propTypes = {
37
37
label : PropTypes . node ,
38
38
input : PropTypes . object ,
39
39
isDisabled : PropTypes . bool ,
40
- name : PropTypes . string
40
+ name : PropTypes . string ,
41
+ id : PropTypes . string
41
42
} ;
42
43
43
44
const Checkbox = ( { options, ...props } ) =>
You can’t perform that action at this time.
0 commit comments