File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,16 +30,17 @@ const FormGroup = (props) => {
3030 inline,
3131 floating,
3232 tag : Tag ,
33+ switch : switchProp ,
3334 ...attributes
3435 } = props ;
3536
36- const formCheck = check || props . switch ;
37+ const formCheck = check || switchProp ;
3738
3839 const classes = mapToCssModules ( classNames (
3940 className ,
4041 row ? 'row' : false ,
4142 formCheck ? 'form-check' : 'mb-3' ,
42- props . switch ? 'form-switch' : false ,
43+ switchProp ? 'form-switch' : false ,
4344 formCheck && inline ? 'form-check-inline' : false ,
4445 formCheck && disabled ? 'disabled' : false ,
4546 floating && 'form-floating'
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ export interface FormGroupProps extends React.HTMLAttributes<HTMLDivElement> {
55 [ key : string ] : any ;
66 row ?: boolean ;
77 check ?: boolean ;
8+ switch ?: boolean ;
89 inline ?: boolean ;
910 floating ?: boolean ;
1011 disabled ?: boolean ;
You can’t perform that action at this time.
0 commit comments