mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-24 19:10:22 +01:00
26 lines
814 B
JavaScript
26 lines
814 B
JavaScript
import { connect } from 'react-redux'
|
|
import ConfirmSeedPhrase from './confirm-seed-phrase.component'
|
|
import {
|
|
setSeedPhraseBackedUp,
|
|
hideSeedPhraseBackupAfterOnboarding,
|
|
initializeThreeBox,
|
|
} from '../../../../store/actions'
|
|
|
|
const mapStateToProps = (state) => {
|
|
const { appState: { showingSeedPhraseBackupAfterOnboarding } } = state
|
|
|
|
return {
|
|
showingSeedPhraseBackupAfterOnboarding,
|
|
}
|
|
}
|
|
|
|
const mapDispatchToProps = (dispatch) => {
|
|
return {
|
|
setSeedPhraseBackedUp: (seedPhraseBackupState) => dispatch(setSeedPhraseBackedUp(seedPhraseBackupState)),
|
|
hideSeedPhraseBackupAfterOnboarding: () => dispatch(hideSeedPhraseBackupAfterOnboarding()),
|
|
initializeThreeBox: () => dispatch(initializeThreeBox()),
|
|
}
|
|
}
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(ConfirmSeedPhrase)
|