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