mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-19 22:12:13 +00:00
Checkbox code reformat
This commit is contained in:
parent
a97dfb1e2f
commit
a0d2f400c4
1 changed files with 2 additions and 2 deletions
|
|
@ -5,7 +5,7 @@ const Icon = require('stremio-icons/dom');
|
|||
const { Input } = require('stremio-navigation');
|
||||
const styles = require('./styles');
|
||||
|
||||
const Checkbox = React.forwardRef(({ className, disabled = false, checked = false, onClick, children }, ref) => {
|
||||
const Checkbox = React.forwardRef(({ className, checked = false, disabled = false, onClick, children }, ref) => {
|
||||
return (
|
||||
<div className={classnames(className, styles['checkbox-container'], { 'checked': checked }, { 'disabled': disabled })} onClick={onClick}>
|
||||
<Input
|
||||
|
|
@ -26,8 +26,8 @@ Checkbox.displayName = 'Checkbox';
|
|||
|
||||
Checkbox.propTypes = {
|
||||
className: PropTypes.string,
|
||||
disabled: PropTypes.bool,
|
||||
checked: PropTypes.bool,
|
||||
disabled: PropTypes.bool,
|
||||
onClick: PropTypes.func,
|
||||
children: PropTypes.node
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue