-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add end of flow screen to first time flow
- Loading branch information
Showing
13 changed files
with
143 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 69 additions & 0 deletions
69
ui/app/components/pages/first-time-flow/end-of-flow/end-of-flow.component.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
import React, { PureComponent } from 'react' | ||
import PropTypes from 'prop-types' | ||
import Button from '../../../button' | ||
import { DEFAULT_ROUTE } from '../../../../routes' | ||
|
||
export default class EndOfFlowScreen extends PureComponent { | ||
static contextTypes = { | ||
t: PropTypes.func, | ||
} | ||
|
||
static propTypes = { | ||
history: PropTypes.object, | ||
completeOnboarding: PropTypes.func, | ||
} | ||
|
||
render () { | ||
const { history, completeOnboarding } = this.props | ||
|
||
return ( | ||
<div className="end-of-flow"> | ||
<div className="app-header__logo-container"> | ||
<img | ||
className="app-header__metafox-logo app-header__metafox-logo--horizontal" | ||
src="/images/logo/metamask-logo-horizontal.svg" | ||
height={30} | ||
/> | ||
<img | ||
className="app-header__metafox-logo app-header__metafox-logo--icon" | ||
src="/images/logo/metamask-fox.svg" | ||
height={42} | ||
width={42} | ||
/> | ||
</div> | ||
<div className="end-of-flow__emoji">🎉</div> | ||
<div className="first-time-flow__header"> | ||
{ 'Congratulations' } | ||
</div> | ||
<div className="first-time-flow__text-block end-of-flow__text-1"> | ||
{ 'You passed the test - keep your seedphrase safe, it\'s your responsibility!' } | ||
</div> | ||
<div className="first-time-flow__text-block end-of-flow__text-2"> | ||
{ 'Tips on storing it safely ' } | ||
</div> | ||
<div className="first-time-flow__text-block end-of-flow__text-3"> | ||
{ '• Save a backup in multiple places' } | ||
</div> | ||
<div className="first-time-flow__text-block end-of-flow__text-4"> | ||
{ '• Never tell anyone' } | ||
</div> | ||
<div className="first-time-flow__text-block end-of-flow__text-3"> | ||
{ 'If you need to back it up again, you can find them in Settings -> Security.' } | ||
</div> | ||
<div className="first-time-flow__text-block end-of-flow__text-3"> | ||
{ '*Metamask cannot recover your seedphrase. Learn more.' } | ||
</div> | ||
<Button | ||
type="confirm" | ||
className="first-time-flow__button" | ||
onClick={async () => { | ||
await completeOnboarding() | ||
history.push(DEFAULT_ROUTE) | ||
}} | ||
> | ||
{ 'All Done' } | ||
</Button> | ||
</div> | ||
) | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
ui/app/components/pages/first-time-flow/end-of-flow/end-of-flow.container.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { connect } from 'react-redux' | ||
import EndOfFlow from './end-of-flow.component' | ||
import { setCompletedOnboarding } from '../../../../actions' | ||
|
||
const mapDispatchToProps = dispatch => { | ||
return { | ||
completeOnboarding: () => dispatch(setCompletedOnboarding()), | ||
} | ||
} | ||
|
||
export default connect(null, mapDispatchToProps)(EndOfFlow) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from './end-of-flow.container' |
43 changes: 43 additions & 0 deletions
43
ui/app/components/pages/first-time-flow/end-of-flow/index.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
.end-of-flow { | ||
color: black; | ||
font-family: Roboto; | ||
font-style: normal; | ||
|
||
.app-header__logo-container { | ||
width: 742px; | ||
margin-top: 3%; | ||
} | ||
|
||
&__text-1, &__text-3 { | ||
font-weight: normal; | ||
font-size: 16px; | ||
margin-top: 18px; | ||
} | ||
|
||
&__text-2 { | ||
font-weight: bold; | ||
font-size: 16px; | ||
margin-top: 26px; | ||
} | ||
|
||
&__text-3 { | ||
margin-top: 26px; | ||
} | ||
|
||
&__text-3 { | ||
margin-top: 2px; | ||
} | ||
|
||
button { | ||
width: 207px; | ||
} | ||
|
||
&__start-over-button { | ||
width: 744px; | ||
} | ||
|
||
&__emoji { | ||
font-size: 80px; | ||
margin-top: 70px; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 0 additions & 12 deletions
12
...ts/pages/first-time-flow/seed-phrase/confirm-seed-phrase/confirm-seed-phrase.container.js
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
ui/app/components/pages/first-time-flow/seed-phrase/confirm-seed-phrase/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export { default } from './confirm-seed-phrase.container' | ||
export { default } from './confirm-seed-phrase.component' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters