diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-11-29 06:25:42 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-11-29 06:25:42 +0800 |
commit | 6222c952c3273ba91f20b5616793c534bb6dca28 (patch) | |
tree | 0cd65e874a977c24a7bb5f03b3591a138bdfeca3 /packages/instant/src/redux | |
parent | b9c983b4d691e58894b8b47f8e5952fdfcc275f9 (diff) | |
parent | e5b09ba2fd366e485a864bc5819ebde5338f166c (diff) | |
download | dexon-sol-tools-6222c952c3273ba91f20b5616793c534bb6dca28.tar.gz dexon-sol-tools-6222c952c3273ba91f20b5616793c534bb6dca28.tar.zst dexon-sol-tools-6222c952c3273ba91f20b5616793c534bb6dca28.zip |
Merge branch 'development' into feature/instant/quote-analytics
Diffstat (limited to 'packages/instant/src/redux')
-rw-r--r-- | packages/instant/src/redux/analytics_middleware.ts | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/packages/instant/src/redux/analytics_middleware.ts b/packages/instant/src/redux/analytics_middleware.ts index 8aa76eb77..3dc5fe924 100644 --- a/packages/instant/src/redux/analytics_middleware.ts +++ b/packages/instant/src/redux/analytics_middleware.ts @@ -3,7 +3,7 @@ import * as _ from 'lodash'; import { Middleware } from 'redux'; import { ETH_DECIMALS } from '../constants'; -import { Account, AccountState } from '../types'; +import { Account, AccountState, StandardSlidingPanelContent } from '../types'; import { analytics } from '../util/analytics'; import { Action, ActionTypes } from './actions'; @@ -77,6 +77,18 @@ export const analyticsMiddleware: Middleware = store => next => middlewareAction }); } break; + case ActionTypes.OPEN_STANDARD_SLIDING_PANEL: + const openSlidingContent = curState.standardSlidingPanelSettings.content; + if (openSlidingContent === StandardSlidingPanelContent.InstallWallet) { + analytics.trackInstallWalletModalOpened(); + } + break; + case ActionTypes.CLOSE_STANDARD_SLIDING_PANEL: + const closeSlidingContent = curState.standardSlidingPanelSettings.content; + if (closeSlidingContent === StandardSlidingPanelContent.InstallWallet) { + analytics.trackInstallWalletModalClosed(); + } + break; } return nextAction; |