lint
This commit is contained in:
parent
26eaef848b
commit
d6a532040e
3 changed files with 3 additions and 3 deletions
|
@ -20,7 +20,7 @@ import classNames from "classnames";
|
|||
import * as sdk from "../../../index";
|
||||
|
||||
// Controlled Toggle Switch element, written with Accessibility in mind
|
||||
export default ({checked, disabled=false, onChange, ...props}: IProps) => {
|
||||
export default ({checked, disabled = false, onChange, ...props}: IProps) => {
|
||||
const _onClick = () => {
|
||||
if (disabled) return;
|
||||
onChange(!checked);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue