diff --git a/webapp/src/components/commentsList.tsx b/webapp/src/components/commentsList.tsx index bf477b6db..241e25a75 100644 --- a/webapp/src/components/commentsList.tsx +++ b/webapp/src/components/commentsList.tsx @@ -79,7 +79,7 @@ class CommentsList extends React.Component { text={this.state.newComment} placeholderText={intl.formatMessage({id: 'CardDetail.new-comment-placeholder', defaultMessage: 'Add a comment...'})} onChange={(value: string) => { - if (this.state.newComment != value) { + if (this.state.newComment !== value) { this.setState({newComment: value}) } }} diff --git a/webapp/src/pages/loginPage.tsx b/webapp/src/pages/loginPage.tsx index 113c0c300..1122c9f43 100644 --- a/webapp/src/pages/loginPage.tsx +++ b/webapp/src/pages/loginPage.tsx @@ -8,20 +8,21 @@ import Button from '../widgets/buttons/button' import './loginPage.scss' -type Props = {} - -type State = { - username: string; - password: string; +type Props = { } -export default class LoginPage extends React.Component { +type State = { + username: string + password: string +} + +export default class LoginPage extends React.PureComponent { state = { username: '', password: '', } - handleLogin = () => { + private handleLogin = (): void => { Utils.log('Logging in') } @@ -29,7 +30,7 @@ export default class LoginPage extends React.Component { return (
- + { />
- + { onChange={(e) => this.setState({password: e.target.value})} />
- +
) }