add back lint to UserEmailVerify
This commit is contained in:
parent
31e00c9353
commit
17dc02b236
|
@ -1,21 +1,33 @@
|
||||||
// I'll come back to this
|
// @flow
|
||||||
/* eslint-disable */
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import Button from 'component/button';
|
import Button from 'component/button';
|
||||||
import { Form, FormField, FormRow, Submit } from 'component/common/form';
|
import { Form, FormField, FormRow, Submit } from 'component/common/form';
|
||||||
|
|
||||||
class UserEmailVerify extends React.PureComponent {
|
type Props = {
|
||||||
constructor(props) {
|
cancelButton: React.Node,
|
||||||
|
errorMessage: ?string,
|
||||||
|
email: string,
|
||||||
|
isPending: boolean,
|
||||||
|
verifyUserEmail: (string, string) => void,
|
||||||
|
verifyUserEmailFailure: string => void,
|
||||||
|
};
|
||||||
|
|
||||||
|
type State = {
|
||||||
|
code: string,
|
||||||
|
};
|
||||||
|
|
||||||
|
class UserEmailVerify extends React.PureComponent<Props, State> {
|
||||||
|
constructor(props: Props) {
|
||||||
super(props);
|
super(props);
|
||||||
|
|
||||||
this.state = {
|
this.state = {
|
||||||
code: '',
|
code: '',
|
||||||
};
|
};
|
||||||
|
|
||||||
this.handleSubmit = this.handleSubmit.bind(this);
|
(this: any).handleSubmit = this.handleSubmit.bind(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
handleCodeChanged(event) {
|
handleCodeChanged(event: SyntheticInputEvent<*>) {
|
||||||
this.setState({
|
this.setState({
|
||||||
code: String(event.target.value).trim(),
|
code: String(event.target.value).trim(),
|
||||||
});
|
});
|
||||||
|
@ -66,4 +78,3 @@ class UserEmailVerify extends React.PureComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
export default UserEmailVerify;
|
export default UserEmailVerify;
|
||||||
/* eslint-enable */
|
|
||||||
|
|
Loading…
Reference in a new issue