2019-08-02 05:57:26 +02:00
|
|
|
import { connect } from 'react-redux'
|
|
|
|
import RevealSeedPhrase from './reveal-seed-phrase.component'
|
|
|
|
import {
|
|
|
|
setCompletedOnboarding,
|
|
|
|
setSeedPhraseBackedUp,
|
|
|
|
} from '../../../../store/actions'
|
2019-11-22 18:03:51 +01:00
|
|
|
import { getOnboardingInitiator } from '../../first-time-flow.selectors'
|
|
|
|
|
|
|
|
const mapStateToProps = (state) => {
|
|
|
|
return {
|
|
|
|
onboardingInitiator: getOnboardingInitiator(state),
|
|
|
|
}
|
|
|
|
}
|
2019-08-02 05:57:26 +02:00
|
|
|
|
|
|
|
const mapDispatchToProps = dispatch => {
|
|
|
|
return {
|
|
|
|
setSeedPhraseBackedUp: (seedPhraseBackupState) => dispatch(setSeedPhraseBackedUp(seedPhraseBackupState)),
|
|
|
|
setCompletedOnboarding: () => dispatch(setCompletedOnboarding()),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-11-22 18:03:51 +01:00
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(RevealSeedPhrase)
|