Switching to @Radium decorator
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user