Switching to @Radium decorator

This commit is contained in:
John Lyon-Smith
2018-03-22 15:27:12 -07:00
parent 06ae76047e
commit 1b35ac8b22
32 changed files with 115 additions and 122 deletions

View File

@@ -7,7 +7,7 @@ import { Box, Image, Link, Text, Row, Column, BoundInput, BoundCheckbox, BoundBu
import headerLogo from 'images/deighton.png'
import { versionInfo } from '../version'
import { FormBinder } from 'react-form-binder'
import { reactAutoBind } from 'auto-bind2'
import autobind from 'autobind-decorator'
import { sizeInfo, colorInfo } from 'ui/style'
export class Login extends Component {
@@ -36,7 +36,6 @@ export class Login extends Component {
constructor(props) {
super(props)
reactAutoBind(this)
this.state = {
waitModal: false,
messageModal: null,
@@ -44,6 +43,7 @@ export class Login extends Component {
}
}
@autobind
handleSubmit(e) {
e.preventDefault()
e.stopPropagation()
@@ -79,6 +79,7 @@ export class Login extends Component {
}
}
@autobind
handleMessageModalDismiss() {
this.setState({
messageModal: null,