mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
cb2698d20e
* Action select step of onboarding flow added. * Update navigation on create and import password screens. * Adds terms of service checkbox to create and import account screens. * Add security warning to jazzicon intro step * Update and streamline unique image to confirm seed steps of first time flow. * UI touch ups to welcome screen. * UI touch up on select action page * Fix first time import flow. * Add end of flow screen to first time flow * Replace unique image screen with updated fishing warning screen. * Update e2e tests for onboarding flow changes. * Add required translations to onboarding flow. * Update design of select action screen to emphasize create new wallet option. * Clean up onboarding flow code. * Remove notice related code from first-time-flow directory. * Use updater function argument in new-account.component
30 lines
843 B
JavaScript
30 lines
843 B
JavaScript
import { connect } from 'react-redux'
|
|
import FirstTimeFlow from './first-time-flow.component'
|
|
import {
|
|
createNewVaultAndGetSeedPhrase,
|
|
createNewVaultAndRestore,
|
|
unlockAndGetSeedPhrase,
|
|
} from '../../../actions'
|
|
|
|
const mapStateToProps = state => {
|
|
const { metamask: { completedOnboarding, isInitialized, isUnlocked } } = state
|
|
|
|
return {
|
|
completedOnboarding,
|
|
isInitialized,
|
|
isUnlocked,
|
|
}
|
|
}
|
|
|
|
const mapDispatchToProps = dispatch => {
|
|
return {
|
|
createNewAccount: password => dispatch(createNewVaultAndGetSeedPhrase(password)),
|
|
createNewAccountFromSeed: (password, seedPhrase) => {
|
|
return dispatch(createNewVaultAndRestore(password, seedPhrase))
|
|
},
|
|
unlockAccount: password => dispatch(unlockAndGetSeedPhrase(password)),
|
|
}
|
|
}
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(FirstTimeFlow)
|