From 5207dfdc0e1abf97381e7c710ea8713bef23f830 Mon Sep 17 00:00:00 2001 From: fragosti Date: Fri, 29 Jun 2018 11:50:24 -0700 Subject: Rename userHasAllowances bool to follow proper convention --- .../website/ts/components/onboarding/portal_onboarding_flow.tsx | 6 +++--- .../ts/components/onboarding/set_allowances_onboarding_step.tsx | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'packages/website') diff --git a/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx b/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx index 3e9b0bd2c..6ef8fced1 100644 --- a/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx +++ b/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx @@ -137,11 +137,11 @@ class PlainPortalOnboardingFlow extends React.Component ), placement: 'right', - continueButtonDisplay: this._userHasAllowancesForWethAndZrx() ? 'enabled' : 'disabled', + continueButtonDisplay: this._doesUserHaveAllowancesForWethAndZrx() ? 'enabled' : 'disabled', }, { target: '.wallet', @@ -178,7 +178,7 @@ class PlainPortalOnboardingFlow extends React.Component new BigNumber(0); } - private _userHasAllowancesForWethAndZrx(): boolean { + private _doesUserHaveAllowancesForWethAndZrx(): boolean { const ethToken = utils.getEthToken(this.props.tokenByAddress); const zrxToken = utils.getZrxToken(this.props.tokenByAddress); if (ethToken && zrxToken) { 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 c86cf3bba..5ddfe38d7 100644 --- a/packages/website/ts/components/onboarding/set_allowances_onboarding_step.tsx +++ b/packages/website/ts/components/onboarding/set_allowances_onboarding_step.tsx @@ -5,13 +5,13 @@ import { Text } from 'ts/components/ui/text'; export interface SetAllowancesOnboardingStepProps { zrxAllowanceToggle: React.ReactNode; ethAllowanceToggle: React.ReactNode; - userHasAllowancesForWethAndZrx: boolean; + doesUserHaveAllowancesForWethAndZrx: boolean; } export const SetAllowancesOnboardingStep: React.StatelessComponent = ({ ethAllowanceToggle, zrxAllowanceToggle, - userHasAllowancesForWethAndZrx, + doesUserHaveAllowancesForWethAndZrx, }) => (
Unlock your tokens for trading. You only need to do this once for each token. @@ -25,6 +25,6 @@ export const SetAllowancesOnboardingStep: React.StatelessComponent{zrxAllowanceToggle}
- {userHasAllowancesForWethAndZrx && Perfect! Both your ZRX and WETH tokens are unlocked.} + {doesUserHaveAllowancesForWethAndZrx && Perfect! Both your ZRX and WETH tokens are unlocked.} ); -- cgit