mirror of
https://github.com/Ravinou/borgwarehouse
synced 2024-05-01 21:42:50 +02:00
feat: add "checked" attribute to Switch component
This commit is contained in:
parent
053626c757
commit
c2d48f8821
|
@ -8,6 +8,7 @@ export default function Switch(props) {
|
||||||
<div className={classes.switch}>
|
<div className={classes.switch}>
|
||||||
<label className={classes.pureMaterialSwitch}>
|
<label className={classes.pureMaterialSwitch}>
|
||||||
<input
|
<input
|
||||||
|
checked={props.checked}
|
||||||
disabled={props.disabled}
|
disabled={props.disabled}
|
||||||
type='checkbox'
|
type='checkbox'
|
||||||
onChange={(e) => props.onChange(e.target.checked)}
|
onChange={(e) => props.onChange(e.target.checked)}
|
||||||
|
|
Loading…
Reference in a new issue