replaced eslint:recommended with prettier

This commit is contained in:
Wyatt Johnson
2018-01-11 20:00:34 -07:00
parent d56c19016a
commit 0abc2ca243
649 changed files with 16235 additions and 13008 deletions
@@ -6,30 +6,40 @@ import styles from './StreamConfiguration.css';
import uuid from 'uuid/v4';
class Configuration extends React.Component {
id = uuid();
render() {
const {title, description, children, className, onCheckbox, checked, ...rest} = this.props;
const {
title,
description,
children,
className,
onCheckbox,
checked,
...rest
} = this.props;
return (
<div {...rest} className={cn(styles.root, className)}>
{checked !== undefined &&
{checked !== undefined && (
<div className={styles.action}>
<Checkbox
id={this.id}
className={styles.checkbox}
onChange={onCheckbox}
checked={checked} />
checked={checked}
/>
</div>
}
<div className={cn(styles.wrapper, {
[styles.content]: checked !== undefined,
})}>
<label htmlFor={this.id} className={styles.title}>{title}</label>
)}
<div
className={cn(styles.wrapper, {
[styles.content]: checked !== undefined,
})}
>
<label htmlFor={this.id} className={styles.title}>
{title}
</label>
<div className={styles.description}>{description}</div>
<div>
{children}
</div>
<div>{children}</div>
</div>
</div>
);