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