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

@@ -1,6 +1,6 @@
import React from 'react'
import PropTypes from 'prop-types'
import { reactAutoBind } from 'auto-bind2'
import autobind from 'autobind-decorator'
import { regExpPattern } from 'regexp-pattern'
import { api } from 'src/API'
import { Row, Column, BoundInput, BoundButton, BoundCheckbox, BoundEmailIcon } from 'ui'
@@ -65,7 +65,6 @@ export class UserForm extends React.Component {
constructor(props) {
super(props)
reactAutoBind(this)
this.state = {
binder: new FormBinder(this.props.user, UserForm.bindings, this.props.onModifiedChanged)
}
@@ -79,6 +78,7 @@ export class UserForm extends React.Component {
}
}
@autobind
handleSubmit(e) {
e.preventDefault()
@@ -89,6 +89,7 @@ export class UserForm extends React.Component {
}
}
@autobind
handleReset() {
const { user, onModifiedChanged } = this.props
@@ -99,10 +100,12 @@ export class UserForm extends React.Component {
}
}
@autobind
handleChangeEmail() {
this.props.onChangeEmail()
}
@autobind
handleResendEmail() {
this.props.onResendEmail()
}