You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
704 B
24 lines
704 B
4 years ago
|
import { connect } from 'react-redux';
|
||
5 years ago
|
import {
|
||
|
setCompletedOnboarding,
|
||
|
setSeedPhraseBackedUp,
|
||
4 years ago
|
} from '../../../../store/actions';
|
||
|
import { getOnboardingInitiator } from '../../../../selectors';
|
||
|
import RevealSeedPhrase from './reveal-seed-phrase.component';
|
||
5 years ago
|
|
||
|
const mapStateToProps = (state) => {
|
||
|
return {
|
||
|
onboardingInitiator: getOnboardingInitiator(state),
|
||
4 years ago
|
};
|
||
|
};
|
||
5 years ago
|
|
||
5 years ago
|
const mapDispatchToProps = (dispatch) => {
|
||
5 years ago
|
return {
|
||
4 years ago
|
setSeedPhraseBackedUp: (seedPhraseBackupState) =>
|
||
|
dispatch(setSeedPhraseBackedUp(seedPhraseBackupState)),
|
||
5 years ago
|
setCompletedOnboarding: () => dispatch(setCompletedOnboarding()),
|
||
4 years ago
|
};
|
||
|
};
|
||
5 years ago
|
|
||
4 years ago
|
export default connect(mapStateToProps, mapDispatchToProps)(RevealSeedPhrase);
|