From 5f949d2c4faacf20db4af769d74dbd05c088c1e9 Mon Sep 17 00:00:00 2001 From: David Walsh Date: Tue, 10 Nov 2020 12:18:27 -0600 Subject: [PATCH] Show a 'send eth' button on home screen in full screen mode --- ui/app/components/app/asset-list/asset-list.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/app/components/app/asset-list/asset-list.js b/ui/app/components/app/asset-list/asset-list.js index b576e0bf3..a218e2f15 100644 --- a/ui/app/components/app/asset-list/asset-list.js +++ b/ui/app/components/app/asset-list/asset-list.js @@ -13,11 +13,13 @@ import { getCurrentAccountWithSendEtherInfo, getNativeCurrency, getShouldShowFiat, + getSelectedAddress, } from '../../../selectors' import { useCurrencyDisplay } from '../../../hooks/useCurrencyDisplay' const AssetList = ({ onClickAsset }) => { const history = useHistory() + const selectedAddress = useSelector((state) => getSelectedAddress(state)) const selectedAccountBalance = useSelector( (state) => getCurrentAccountWithSendEtherInfo(state).balance, ) @@ -69,6 +71,7 @@ const AssetList = ({ onClickAsset }) => { onClick={() => onClickAsset(nativeCurrency)} data-testid="wallet-balance" primary={primaryCurrencyProperties.value} + tokenAddress={selectedAddress} tokenSymbol={primaryCurrencyProperties.suffix} secondary={showFiat ? secondaryCurrencyDisplay : undefined} />