From 17dc02b236d424aea091787f77054c61d42b4f4f Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Tue, 3 Apr 2018 11:14:55 -0400 Subject: [PATCH] add back lint to UserEmailVerify --- .../component/userEmailVerify/view.jsx | 25 +++++++++++++------ 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/src/renderer/component/userEmailVerify/view.jsx b/src/renderer/component/userEmailVerify/view.jsx index 49a3f7832..b5f634280 100644 --- a/src/renderer/component/userEmailVerify/view.jsx +++ b/src/renderer/component/userEmailVerify/view.jsx @@ -1,21 +1,33 @@ -// I'll come back to this -/* eslint-disable */ +// @flow import React from 'react'; import Button from 'component/button'; import { Form, FormField, FormRow, Submit } from 'component/common/form'; -class UserEmailVerify extends React.PureComponent { - constructor(props) { +type 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 { + constructor(props: Props) { super(props); this.state = { code: '', }; - this.handleSubmit = this.handleSubmit.bind(this); + (this: any).handleSubmit = this.handleSubmit.bind(this); } - handleCodeChanged(event) { + handleCodeChanged(event: SyntheticInputEvent<*>) { this.setState({ code: String(event.target.value).trim(), }); @@ -66,4 +78,3 @@ class UserEmailVerify extends React.PureComponent { } export default UserEmailVerify; -/* eslint-enable */