diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-06-21 06:51:17 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-06-21 06:51:17 +0800 |
commit | 1e51af1d4b68bad9363411167fd4eb959e7a32dd (patch) | |
tree | 51146dff346547c8348a549064cf2362bb1a80e3 /packages/website/ts/components/onboarding/portal_onboarding_flow.tsx | |
parent | 39ccb2df0b43d3915337259789c393e4603b964c (diff) | |
download | dexon-0x-contracts-1e51af1d4b68bad9363411167fd4eb959e7a32dd.tar dexon-0x-contracts-1e51af1d4b68bad9363411167fd4eb959e7a32dd.tar.gz dexon-0x-contracts-1e51af1d4b68bad9363411167fd4eb959e7a32dd.tar.bz2 dexon-0x-contracts-1e51af1d4b68bad9363411167fd4eb959e7a32dd.tar.lz dexon-0x-contracts-1e51af1d4b68bad9363411167fd4eb959e7a32dd.tar.xz dexon-0x-contracts-1e51af1d4b68bad9363411167fd4eb959e7a32dd.tar.zst dexon-0x-contracts-1e51af1d4b68bad9363411167fd4eb959e7a32dd.zip |
Support mobile friendly onboarding flows
Diffstat (limited to 'packages/website/ts/components/onboarding/portal_onboarding_flow.tsx')
-rw-r--r-- | packages/website/ts/components/onboarding/portal_onboarding_flow.tsx | 5 |
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 7e40192f6..10d4af30e 100644 --- a/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx +++ b/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx @@ -14,7 +14,7 @@ import { SetAllowancesOnboardingStep } from 'ts/components/onboarding/set_allowa import { UnlockWalletOnboardingStep } from 'ts/components/onboarding/unlock_wallet_onboarding_step'; import { WrapEthOnboardingStep } from 'ts/components/onboarding/wrap_eth_onboarding_step'; import { AllowanceToggle } from 'ts/containers/inputs/allowance_toggle'; -import { ProviderType, Token, TokenByAddress, TokenStateByAddress } from 'ts/types'; +import { ProviderType, ScreenWidths, Token, TokenByAddress, TokenStateByAddress } from 'ts/types'; import { analytics } from 'ts/utils/analytics'; import { utils } from 'ts/utils/utils'; @@ -34,6 +34,7 @@ export interface PortalOnboardingFlowProps extends RouteComponentProps<any> { updateIsRunning: (isRunning: boolean) => void; updateOnboardingStep: (stepIndex: number) => void; refetchTokenStateAsync: (tokenAddress: string) => Promise<void>; + screenWidth: ScreenWidths; } class PlainPortalOnboardingFlow extends React.Component<PortalOnboardingFlowProps> { @@ -57,6 +58,8 @@ class PlainPortalOnboardingFlow extends React.Component<PortalOnboardingFlowProp isRunning={this.props.isRunning} onClose={this._closeOnboarding.bind(this)} updateOnboardingStep={this._updateOnboardingStep.bind(this)} + disableOverlay={this.props.screenWidth === ScreenWidths.Sm} + isMobile={this.props.screenWidth === ScreenWidths.Sm} /> ); } |