remove constructors per review

This commit is contained in:
Akinwale Ariwodola 2018-08-16 09:46:41 +01:00
parent 2f9616a487
commit c9d7924bf6
2 changed files with 13 additions and 19 deletions

View file

@ -16,15 +16,12 @@ import firstRunStyle from '../../../styles/firstRun';
class EmailCollectPage extends React.PureComponent {
static MAX_STATUS_TRIES = 15;
constructor() {
super();
this.state = {
email: null,
authenticationStarted: false,
authenticationFailed: false,
statusTries: 0
};
}
state = {
email: null,
authenticationStarted: false,
authenticationFailed: false,
statusTries: 0
};
componentWillReceiveProps(nextProps) {
const { authenticating, authToken } = this.props;

View file

@ -22,16 +22,13 @@ class FirstRunScreen extends React.PureComponent {
'email-collect'
];
constructor() {
super();
this.state = {
currentPage: null,
emailSubmitted: false,
isFirstRun: false,
launchUrl: null,
showBottomContainer: true
};
}
state = {
currentPage: null,
emailSubmitted: false,
isFirstRun: false,
launchUrl: null,
showBottomContainer: true
};
componentDidMount() {
Linking.getInitialURL().then((url) => {