complete authentication flow and email verification link implementation #232
|
@ -16,15 +16,12 @@ import firstRunStyle from '../../../styles/firstRun';
|
|||
No aliases (or resolves) for paths? No aliases (or resolves) for paths?
*Remove the long relative paths
Don’t need a full constructor (see comment above) Don’t need a full constructor (see comment above)
This is a legacy lifecycle method, should use This is a legacy lifecycle method, should use `getDerivedStateFromProps`
|
||||
class EmailCollectPage extends React.PureComponent {
|
||||
static MAX_STATUS_TRIES = 15;
|
||||
|
||||
constructor() {
|
||||
No aliases (or resolves) for paths? No aliases (or resolves) for paths?
*Remove the long relative paths
Don’t need a full constructor (see comment above) Don’t need a full constructor (see comment above)
This is a legacy lifecycle method, should use This is a legacy lifecycle method, should use `getDerivedStateFromProps`
|
||||
super();
|
||||
No aliases (or resolves) for paths? No aliases (or resolves) for paths?
*Remove the long relative paths
Don’t need a full constructor (see comment above) Don’t need a full constructor (see comment above)
This is a legacy lifecycle method, should use This is a legacy lifecycle method, should use `getDerivedStateFromProps`
|
||||
this.state = {
|
||||
No aliases (or resolves) for paths? No aliases (or resolves) for paths?
*Remove the long relative paths
Don’t need a full constructor (see comment above) Don’t need a full constructor (see comment above)
This is a legacy lifecycle method, should use This is a legacy lifecycle method, should use `getDerivedStateFromProps`
|
||||
email: null,
|
||||
No aliases (or resolves) for paths? No aliases (or resolves) for paths?
*Remove the long relative paths
Don’t need a full constructor (see comment above) Don’t need a full constructor (see comment above)
This is a legacy lifecycle method, should use This is a legacy lifecycle method, should use `getDerivedStateFromProps`
|
||||
authenticationStarted: false,
|
||||
No aliases (or resolves) for paths? No aliases (or resolves) for paths?
*Remove the long relative paths
Don’t need a full constructor (see comment above) Don’t need a full constructor (see comment above)
This is a legacy lifecycle method, should use This is a legacy lifecycle method, should use `getDerivedStateFromProps`
|
||||
authenticationFailed: false,
|
||||
No aliases (or resolves) for paths? No aliases (or resolves) for paths?
*Remove the long relative paths
Don’t need a full constructor (see comment above) Don’t need a full constructor (see comment above)
This is a legacy lifecycle method, should use This is a legacy lifecycle method, should use `getDerivedStateFromProps`
|
||||
statusTries: 0
|
||||
No aliases (or resolves) for paths? No aliases (or resolves) for paths?
*Remove the long relative paths
Don’t need a full constructor (see comment above) Don’t need a full constructor (see comment above)
This is a legacy lifecycle method, should use This is a legacy lifecycle method, should use `getDerivedStateFromProps`
|
||||
};
|
||||
No aliases (or resolves) for paths? No aliases (or resolves) for paths?
*Remove the long relative paths
Don’t need a full constructor (see comment above) Don’t need a full constructor (see comment above)
This is a legacy lifecycle method, should use This is a legacy lifecycle method, should use `getDerivedStateFromProps`
|
||||
}
|
||||
No aliases (or resolves) for paths? No aliases (or resolves) for paths?
*Remove the long relative paths
Don’t need a full constructor (see comment above) Don’t need a full constructor (see comment above)
This is a legacy lifecycle method, should use This is a legacy lifecycle method, should use `getDerivedStateFromProps`
|
||||
state = {
|
||||
No aliases (or resolves) for paths? No aliases (or resolves) for paths?
*Remove the long relative paths
Don’t need a full constructor (see comment above) Don’t need a full constructor (see comment above)
This is a legacy lifecycle method, should use This is a legacy lifecycle method, should use `getDerivedStateFromProps`
|
||||
email: null,
|
||||
No aliases (or resolves) for paths? No aliases (or resolves) for paths?
*Remove the long relative paths
Don’t need a full constructor (see comment above) Don’t need a full constructor (see comment above)
This is a legacy lifecycle method, should use This is a legacy lifecycle method, should use `getDerivedStateFromProps`
|
||||
authenticationStarted: false,
|
||||
No aliases (or resolves) for paths? No aliases (or resolves) for paths?
*Remove the long relative paths
Don’t need a full constructor (see comment above) Don’t need a full constructor (see comment above)
This is a legacy lifecycle method, should use This is a legacy lifecycle method, should use `getDerivedStateFromProps`
|
||||
authenticationFailed: false,
|
||||
No aliases (or resolves) for paths? No aliases (or resolves) for paths?
*Remove the long relative paths
Don’t need a full constructor (see comment above) Don’t need a full constructor (see comment above)
This is a legacy lifecycle method, should use This is a legacy lifecycle method, should use `getDerivedStateFromProps`
|
||||
statusTries: 0
|
||||
No aliases (or resolves) for paths? No aliases (or resolves) for paths?
*Remove the long relative paths
Don’t need a full constructor (see comment above) Don’t need a full constructor (see comment above)
This is a legacy lifecycle method, should use This is a legacy lifecycle method, should use `getDerivedStateFromProps`
|
||||
};
|
||||
No aliases (or resolves) for paths? No aliases (or resolves) for paths?
*Remove the long relative paths
Don’t need a full constructor (see comment above) Don’t need a full constructor (see comment above)
This is a legacy lifecycle method, should use This is a legacy lifecycle method, should use `getDerivedStateFromProps`
|
||||
|
||||
componentWillReceiveProps(nextProps) {
|
||||
const { authenticating, authToken } = this.props;
|
||||
|
|
|||
No aliases (or resolves) for paths? No aliases (or resolves) for paths?
*Remove the long relative paths
Don’t need a full constructor (see comment above) Don’t need a full constructor (see comment above)
This is a legacy lifecycle method, should use This is a legacy lifecycle method, should use `getDerivedStateFromProps`
No aliases (or resolves) for paths? No aliases (or resolves) for paths?
*Remove the long relative paths
Don’t need a full constructor (see comment above) Don’t need a full constructor (see comment above)
This is a legacy lifecycle method, should use This is a legacy lifecycle method, should use `getDerivedStateFromProps`
|
|
@ -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) => {
|
||||
|
|
No aliases (or resolves) for paths?
*Remove the long relative paths
Don’t need a full constructor (see comment above)
This is a legacy lifecycle method, should use
getDerivedStateFromProps