remove constructors per review
This commit is contained in:
parent
2f9616a487
commit
c9d7924bf6
2 changed files with 13 additions and 19 deletions
|
@ -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;
|
||||
|
|
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Reference in a new issue