Make onboarding bounce around less
This commit is contained in:
@@ -90,14 +90,14 @@ class PlainPortalOnboardingFlow extends React.Component<PortalOnboardingFlowProp
|
||||
continueButtonDisplay: 'enabled',
|
||||
},
|
||||
{
|
||||
target: '.eth-row',
|
||||
target: '.wallet',
|
||||
title: 'Add ETH',
|
||||
content: <AddEthOnboardingStep />,
|
||||
placement: 'right',
|
||||
continueButtonDisplay: this._userHasVisibleEth() ? 'enabled' : 'disabled',
|
||||
},
|
||||
{
|
||||
target: '.weth-row',
|
||||
target: '.wallet',
|
||||
title: 'Step 1/2',
|
||||
content: (
|
||||
<WrapEthOnboardingStep
|
||||
@@ -110,7 +110,7 @@ class PlainPortalOnboardingFlow extends React.Component<PortalOnboardingFlowProp
|
||||
continueButtonDisplay: this._userHasVisibleWeth() ? 'enabled' : undefined,
|
||||
},
|
||||
{
|
||||
target: '.weth-row',
|
||||
target: '.wallet',
|
||||
title: 'Step 2/2',
|
||||
content: (
|
||||
<SetAllowancesOnboardingStep
|
||||
|
||||
@@ -311,7 +311,7 @@ export class Wallet extends React.Component<WalletProps, WalletState> {
|
||||
wrappedEtherDirection: Side.Deposit,
|
||||
};
|
||||
const key = ETHER_ITEM_KEY;
|
||||
return this._renderBalanceRow(key, icon, primaryText, secondaryText, accessoryItemConfig, false, 'eth-row');
|
||||
return this._renderBalanceRow(key, icon, primaryText, secondaryText, accessoryItemConfig, false);
|
||||
}
|
||||
private _renderTokenRows(): React.ReactNode {
|
||||
const trackedTokens = this.props.trackedTokens;
|
||||
@@ -351,15 +351,7 @@ export class Wallet extends React.Component<WalletProps, WalletState> {
|
||||
};
|
||||
const key = token.address;
|
||||
const isLastRow = index === this.props.trackedTokens.length - 1;
|
||||
return this._renderBalanceRow(
|
||||
key,
|
||||
icon,
|
||||
primaryText,
|
||||
secondaryText,
|
||||
accessoryItemConfig,
|
||||
isLastRow,
|
||||
isWeth ? 'weth-row' : undefined,
|
||||
);
|
||||
return this._renderBalanceRow(key, icon, primaryText, secondaryText, accessoryItemConfig, isLastRow);
|
||||
}
|
||||
private _renderBalanceRow(
|
||||
key: string,
|
||||
|
||||
Reference in New Issue
Block a user