diff --git a/components/Toggle.js b/components/Toggle.js index cf1d271..81107c7 100644 --- a/components/Toggle.js +++ b/components/Toggle.js @@ -10,44 +10,45 @@ class Toggle extends React.PureComponent { toggle = () => this.props.onChange(!this.props.enabled) - handleKeydown = e => { - if (e.key === 'Enter') this.toggle() - if (e.key === ' ') { - e.preventDefault() - this.toggle() - } - } - render() { - // TODO use input[type=["checkbox"] /> instead of div return ( -
+
+ {this.props.enabled ? :
}