1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Merge pull request #9845 from darkwing/send-eth-button

Show a 'send eth' button on home screen in full screen mode
This commit is contained in:
David Walsh 2020-11-12 13:29:47 -06:00 committed by GitHub
commit 64657efdef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}
/>