commit
0409e95d1e
@ -24,7 +24,7 @@ import ParityLogo from '~/../assets/images/parity-logo-black-no-text.svg';
|
|||||||
import { createIdentityImg } from '~/api/util/identity';
|
import { createIdentityImg } from '~/api/util/identity';
|
||||||
import { newError } from '~/redux/actions';
|
import { newError } from '~/redux/actions';
|
||||||
import { Button, Portal } from '~/ui';
|
import { Button, Portal } from '~/ui';
|
||||||
import { CheckIcon, DoneIcon, NextIcon, PrintIcon } from '~/ui/Icons';
|
import { CheckIcon, DoneIcon, NextIcon, PrintIcon, ReplayIcon } from '~/ui/Icons';
|
||||||
|
|
||||||
import { NewAccount, AccountDetails } from '../CreateAccount';
|
import { NewAccount, AccountDetails } from '../CreateAccount';
|
||||||
import print from '../CreateAccount/print';
|
import print from '../CreateAccount/print';
|
||||||
@ -230,7 +230,18 @@ class FirstRun extends Component {
|
|||||||
];
|
];
|
||||||
|
|
||||||
case 4:
|
case 4:
|
||||||
return (
|
return [
|
||||||
|
<Button
|
||||||
|
icon={ <ReplayIcon /> }
|
||||||
|
key='restart'
|
||||||
|
label={
|
||||||
|
<FormattedMessage
|
||||||
|
id='firstRun.button.restart'
|
||||||
|
defaultMessage='Start Over'
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
onClick={ this.onStartOver }
|
||||||
|
/>,
|
||||||
<Button
|
<Button
|
||||||
icon={ <CheckIcon /> }
|
icon={ <CheckIcon /> }
|
||||||
key='create'
|
key='create'
|
||||||
@ -242,7 +253,7 @@ class FirstRun extends Component {
|
|||||||
}
|
}
|
||||||
onClick={ this.onCreate }
|
onClick={ this.onCreate }
|
||||||
/>
|
/>
|
||||||
);
|
];
|
||||||
|
|
||||||
case 5:
|
case 5:
|
||||||
return (
|
return (
|
||||||
@ -282,6 +293,12 @@ class FirstRun extends Component {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onStartOver = () => {
|
||||||
|
this.setState({
|
||||||
|
stage: 2
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
onAcceptTnC = () => {
|
onAcceptTnC = () => {
|
||||||
this.setState({
|
this.setState({
|
||||||
hasAcceptedTnc: !this.state.hasAcceptedTnc
|
hasAcceptedTnc: !this.state.hasAcceptedTnc
|
||||||
@ -312,7 +329,7 @@ class FirstRun extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
skipAccountCreation = () => {
|
skipAccountCreation = () => {
|
||||||
this.setState({ stage: this.state.stage + 2 });
|
this.setState({ stage: this.state.stage + 3 });
|
||||||
}
|
}
|
||||||
|
|
||||||
printPhrase = () => {
|
printPhrase = () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user