aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/redux
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-05-26 02:36:07 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-05-26 03:03:18 +0800
commite575323c6013b89873b698a7f34da135a4b2c51f (patch)
tree43ff4bed7fdf007936fc1ba3ee3d113f884dd842 /packages/website/ts/redux
parent809ac3340cb477d4b46e24d4bad028568beeec06 (diff)
downloaddexon-sol-tools-e575323c6013b89873b698a7f34da135a4b2c51f.tar
dexon-sol-tools-e575323c6013b89873b698a7f34da135a4b2c51f.tar.gz
dexon-sol-tools-e575323c6013b89873b698a7f34da135a4b2c51f.tar.bz2
dexon-sol-tools-e575323c6013b89873b698a7f34da135a4b2c51f.tar.lz
dexon-sol-tools-e575323c6013b89873b698a7f34da135a4b2c51f.tar.xz
dexon-sol-tools-e575323c6013b89873b698a7f34da135a4b2c51f.tar.zst
dexon-sol-tools-e575323c6013b89873b698a7f34da135a4b2c51f.zip
Auto-show onboarding flow on first page view
Diffstat (limited to 'packages/website/ts/redux')
-rw-r--r--packages/website/ts/redux/reducer.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/website/ts/redux/reducer.ts b/packages/website/ts/redux/reducer.ts
index e61345c87..5c57792f7 100644
--- a/packages/website/ts/redux/reducer.ts
+++ b/packages/website/ts/redux/reducer.ts
@@ -42,6 +42,7 @@ export interface State {
userEtherBalanceInWei: BigNumber;
portalOnboardingStep: number;
isPortalOnboardingShowing: boolean;
+ hasPortalOnboardingBeenSeen: boolean;
// Note: cache of supplied orderJSON in fill order step. Do not use for anything else.
userSuppliedOrderCache: Order;
@@ -56,7 +57,7 @@ export interface State {
translate: Translate;
}
-const INITIAL_STATE: State = {
+export const INITIAL_STATE: State = {
// Portal
blockchainErr: BlockchainErrs.NoError,
blockchainIsLoaded: false,
@@ -84,6 +85,7 @@ const INITIAL_STATE: State = {
userSuppliedOrderCache: undefined,
portalOnboardingStep: 0,
isPortalOnboardingShowing: false,
+ hasPortalOnboardingBeenSeen: false,
// Docs
docsVersion: DEFAULT_DOCS_VERSION,
availableDocVersions: [DEFAULT_DOCS_VERSION],
@@ -309,6 +311,7 @@ export function reducer(state: State = INITIAL_STATE, action: Action): State {
return {
...state,
isPortalOnboardingShowing,
+ hasPortalOnboardingBeenSeen: true,
};
}