mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-01 21:57:06 +01:00
392b08a5c4
* Fix: show whats new to users who created, not imported, a new wallet, but not on their first session * Fix tests Hide `Improved token detection is here` & `Scam and security risks` whats new * Fix unit test Co-authored-by: PeterYinusa <peter.yinusa@consensys.net>
23 lines
700 B
JavaScript
23 lines
700 B
JavaScript
import { connect } from 'react-redux';
|
|
|
|
import { getOnboardingInitiator } from '../../../selectors';
|
|
import { setCompletedOnboarding } from '../../../store/actions';
|
|
import { setOnBoardedInThisUISession } from '../../../ducks/app/app';
|
|
import EndOfFlow from './end-of-flow.component';
|
|
|
|
const mapStateToProps = (state) => {
|
|
return {
|
|
onboardingInitiator: getOnboardingInitiator(state),
|
|
};
|
|
};
|
|
|
|
const mapDispatchToProps = (dispatch) => {
|
|
return {
|
|
setCompletedOnboarding: () => dispatch(setCompletedOnboarding()),
|
|
setOnBoardedInThisUISession: (value) =>
|
|
dispatch(setOnBoardedInThisUISession(value)),
|
|
};
|
|
};
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(EndOfFlow);
|