diff --git a/ui/src/components/toggle/index.js b/ui/src/components/toggle/index.js index 1f0e6850..859a3983 100644 --- a/ui/src/components/toggle/index.js +++ b/ui/src/components/toggle/index.js @@ -5,34 +5,44 @@ const React = require('react'); const styles = require('./style.css'); const Toggle = ({ - off = false, + checked = false, className, style }) => { const tgl = classNames( className, - styles.toggle, - off ? styles.off : styles.on, + styles.tgl, + checked ? styles.on : styles.off, ); - const btn = classNames( + const input = classNames( className, - styles.btn + styles.input + ); + + const label = classNames( + className, + styles.label ); return ( -
-
- - {off ? 'Off' : 'On'} - +
+