Login screen looking good

This commit is contained in:
John Lyon-Smith
2018-02-26 16:38:18 -08:00
parent 93c1ecb919
commit 5faa4600f5
18 changed files with 120 additions and 135 deletions

View File

@@ -1,6 +1,6 @@
import React from 'react'
import PropTypes from 'prop-types'
import { Checkbox, Label } from 'ui'
import { Checkbox } from 'ui'
// This is an example of a validated component with a value that can change itself, that cannot ever be invalid.
@@ -8,9 +8,7 @@ export class ValidatedCheckbox extends React.Component {
static propTypes = {
name: PropTypes.string.isRequired,
label: PropTypes.string,
width: PropTypes.number,
validator: PropTypes.object.isRequired,
className: PropTypes.string
}
constructor(props) {
@@ -37,10 +35,7 @@ export class ValidatedCheckbox extends React.Component {
render() {
return (
<Label width={this.props.width} disabled={this.state.disabled} className={this.props.className}>
<Checkbox value={!!this.state.value} name={this.props.name} />
{this.props.label}
</Label>
<Checkbox value={!!this.state.value} name={this.props.name} label={this.props.label} />
)
}
}