mirror of
https://github.com/Ravinou/borgwarehouse
synced 2024-05-21 15:06:47 +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}>
|
||||
<label className={classes.pureMaterialSwitch}>
|
||||
<input
|
||||
checked={props.checked}
|
||||
disabled={props.disabled}
|
||||
type='checkbox'
|
||||
onChange={(e) => props.onChange(e.target.checked)}
|
||||
|
|
Loading…
Reference in a new issue