Skip to content

Commit

Permalink
feat(welcome-modal): remove skipWalletTour
Browse files Browse the repository at this point in the history
  • Loading branch information
jjBlockchain committed Feb 20, 2020
1 parent 296473f commit db92f91
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ export const setWalletTourVisibility = visibility => ({
payload: visibility
})

export const skipWalletTourClicked = startTourCallback => ({
payload: { startTourCallback },
type: AT.SKIP_WALLET_TOUR_CLICKED
})

export const swapGetStartedSubmitClicked = () => ({
type: AT.SWAP_GET_STARTED_SUBMIT_CLICKED
})
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { actions, actionTypes, model } from 'data'
import { delay, put, take } from 'redux-saga/effects'

import * as C from '/services/AlertService'
const { GENERAL_EVENTS } = model.analytics

export const logLocation = 'components/onboarding/sagas'
Expand Down Expand Up @@ -67,25 +66,6 @@ export default () => {
}
}

const skipWalletTourClicked = function * (action) {
try {
yield put(
actions.alerts.displayInfo(C.SKIP_WALLET_TOUR_SUCCESS, {
startTour: action.payload.startTourCallback
})
)
yield put(actions.core.kvStore.whatsNew.setHasSkippedWalletTour(true))
yield put(
actions.analytics.logEvent(GENERAL_EVENTS.WALLET_INTRO_DISMISSED)
)
yield put(actions.modals.closeModal())
} catch (e) {
yield put(
actions.logs.logErrorMessage(logLocation, 'skipWalletTourClicked', e)
)
}
}

const takeWalletTourClicked = function * () {
try {
yield put(actions.modals.closeModal())
Expand Down Expand Up @@ -122,7 +102,6 @@ export default () => {
return {
airdropClaimSubmitClicked,
coinifyUpgradeSubmitClicked,
skipWalletTourClicked,
swapGetStartedSubmitClicked,
takeWalletTourClicked,
upgradeForAirdropSubmitClicked
Expand Down

0 comments on commit db92f91

Please sign in to comment.