Make onboarding bounce around less

This commit is contained in:
fragosti
2018-06-27 13:40:52 -07:00
parent c5085d8364
commit ffdc7d13a9
2 changed files with 5 additions and 13 deletions

View File

@@ -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,