Skip to content

Commit

Permalink
feat(Pit Connect): if pit pulse is seen during tour hide it
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip London committed Oct 16, 2019
1 parent 5d79811 commit 8b2a8e3
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions packages/blockchain-wallet-v4-frontend/src/scenes/Home/index.js
Expand Up @@ -96,12 +96,16 @@ const GlobalJoyrideStyles = createGlobalStyle`
`

const Home = props => {
const { onboardingActions, showWalletTour } = props
const { onboardingActions, preferencesActions, showWalletTour } = props

const handleTourCallbacks = data => {
if ([STATUS.FINISHED, STATUS.SKIPPED].includes(data.status)) {
onboardingActions.setWalletTourVisibility(false)
}
// PIT tooltip seen
if (data.index === 5) {
preferencesActions.hideThePitPulse()
}
}
return (
<Wrapper>
Expand Down Expand Up @@ -138,7 +142,11 @@ const mapStateToProps = state => ({
})

const mapDispatchToProps = dispatch => ({
onboardingActions: bindActionCreators(actions.components.onboarding, dispatch)
onboardingActions: bindActionCreators(
actions.components.onboarding,
dispatch
),
preferencesActions: bindActionCreators(actions.preferences, dispatch)
})

export default connect(
Expand Down

0 comments on commit 8b2a8e3

Please sign in to comment.