Login screen looking good
This commit is contained in:
@@ -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} />
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user