diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-06-29 09:00:10 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-06-29 09:00:10 +0800 |
commit | 67777c586ddc138ab74b78d41c58551a772d7c9e (patch) | |
tree | 859502bfb9357e7054a93d4442ed6be69417793c /packages | |
parent | 9ada8e4ddf621bb747ba1f35bfd62ac22db40d30 (diff) | |
download | dexon-sol-tools-67777c586ddc138ab74b78d41c58551a772d7c9e.tar.gz dexon-sol-tools-67777c586ddc138ab74b78d41c58551a772d7c9e.tar.zst dexon-sol-tools-67777c586ddc138ab74b78d41c58551a772d7c9e.zip |
Customize allowance setting onboarding step if you have your allowances set
Diffstat (limited to 'packages')
-rw-r--r-- | packages/website/ts/components/onboarding/portal_onboarding_flow.tsx | 1 | ||||
-rw-r--r-- | packages/website/ts/components/onboarding/set_allowances_onboarding_step.tsx | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx b/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx index 0eb7cd8af..5db3a4919 100644 --- a/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx +++ b/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx @@ -136,6 +136,7 @@ class PlainPortalOnboardingFlow extends React.Component<PortalOnboardingFlowProp <SetAllowancesOnboardingStep zrxAllowanceToggle={this._renderZrxAllowanceToggle()} ethAllowanceToggle={this._renderEthAllowanceToggle()} + userHasAllowancesForWethAndZrx={this._userHasAllowancesForWethAndZrx()} /> ), placement: 'right', diff --git a/packages/website/ts/components/onboarding/set_allowances_onboarding_step.tsx b/packages/website/ts/components/onboarding/set_allowances_onboarding_step.tsx index 1ff248c40..c86cf3bba 100644 --- a/packages/website/ts/components/onboarding/set_allowances_onboarding_step.tsx +++ b/packages/website/ts/components/onboarding/set_allowances_onboarding_step.tsx @@ -5,11 +5,13 @@ import { Text } from 'ts/components/ui/text'; export interface SetAllowancesOnboardingStepProps { zrxAllowanceToggle: React.ReactNode; ethAllowanceToggle: React.ReactNode; + userHasAllowancesForWethAndZrx: boolean; } export const SetAllowancesOnboardingStep: React.StatelessComponent<SetAllowancesOnboardingStepProps> = ({ ethAllowanceToggle, zrxAllowanceToggle, + userHasAllowancesForWethAndZrx, }) => ( <div className="flex items-center flex-column"> <Text>Unlock your tokens for trading. You only need to do this once for each token.</Text> @@ -23,5 +25,6 @@ export const SetAllowancesOnboardingStep: React.StatelessComponent<SetAllowances <Container marginTop="10px">{zrxAllowanceToggle}</Container> </div> </Container> + {userHasAllowancesForWethAndZrx && <Text>Perfect! Both your ZRX and WETH tokens are unlocked.</Text>} </div> ); |