aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-06-28 04:36:38 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-06-28 04:36:38 +0800
commitc5085d83649c1e7fdee6594866b69ae230a1cfe8 (patch)
tree19afae945b05656e868d91a64f6b842c4b25f135 /packages/website
parent00ad7bc4707580d80de807a944ba4f7652c823d7 (diff)
downloaddexon-sol-tools-c5085d83649c1e7fdee6594866b69ae230a1cfe8.tar
dexon-sol-tools-c5085d83649c1e7fdee6594866b69ae230a1cfe8.tar.gz
dexon-sol-tools-c5085d83649c1e7fdee6594866b69ae230a1cfe8.tar.bz2
dexon-sol-tools-c5085d83649c1e7fdee6594866b69ae230a1cfe8.tar.lz
dexon-sol-tools-c5085d83649c1e7fdee6594866b69ae230a1cfe8.tar.xz
dexon-sol-tools-c5085d83649c1e7fdee6594866b69ae230a1cfe8.tar.zst
dexon-sol-tools-c5085d83649c1e7fdee6594866b69ae230a1cfe8.zip
Scroll to wallet when onboarding automatically starts as well
Diffstat (limited to 'packages/website')
-rw-r--r--packages/website/ts/components/onboarding/portal_onboarding_flow.tsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx b/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx
index 10d4af30e..86c4f771c 100644
--- a/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx
+++ b/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx
@@ -169,7 +169,6 @@ class PlainPortalOnboardingFlow extends React.Component<PortalOnboardingFlowProp
this._autoStartOnboardingIfShould();
this._adjustStepIfShould();
}
-
private _adjustStepIfShould(): void {
const stepIndex = this.props.stepIndex;
if (this._isAddressAvailable()) {
@@ -197,6 +196,10 @@ class PlainPortalOnboardingFlow extends React.Component<PortalOnboardingFlowProp
const networkName = sharedConstants.NETWORK_NAME_BY_ID[this.props.networkId];
analytics.logEvent('Portal', 'Onboarding Started - Automatic', networkName, this.props.stepIndex);
this.props.updateIsRunning(true);
+ // On mobile, make sure the wallet is completely visible.
+ if (utils.isMobile(this.props.screenWidth)) {
+ document.querySelector('.wallet').scrollIntoView();
+ }
}
}
private _updateOnboardingStep(stepIndex: number): void {