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

Show a 'send eth' button on home screen in full screen mode
feature/default_network_editable
David Walsh 4 years ago committed by GitHub
commit 64657efdef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      ui/app/components/app/asset-list/asset-list.js

@ -13,11 +13,13 @@ import {
getCurrentAccountWithSendEtherInfo, getCurrentAccountWithSendEtherInfo,
getNativeCurrency, getNativeCurrency,
getShouldShowFiat, getShouldShowFiat,
getSelectedAddress,
} from '../../../selectors' } from '../../../selectors'
import { useCurrencyDisplay } from '../../../hooks/useCurrencyDisplay' import { useCurrencyDisplay } from '../../../hooks/useCurrencyDisplay'
const AssetList = ({ onClickAsset }) => { const AssetList = ({ onClickAsset }) => {
const history = useHistory() const history = useHistory()
const selectedAddress = useSelector((state) => getSelectedAddress(state))
const selectedAccountBalance = useSelector( const selectedAccountBalance = useSelector(
(state) => getCurrentAccountWithSendEtherInfo(state).balance, (state) => getCurrentAccountWithSendEtherInfo(state).balance,
) )
@ -69,6 +71,7 @@ const AssetList = ({ onClickAsset }) => {
onClick={() => onClickAsset(nativeCurrency)} onClick={() => onClickAsset(nativeCurrency)}
data-testid="wallet-balance" data-testid="wallet-balance"
primary={primaryCurrencyProperties.value} primary={primaryCurrencyProperties.value}
tokenAddress={selectedAddress}
tokenSymbol={primaryCurrencyProperties.suffix} tokenSymbol={primaryCurrencyProperties.suffix}
secondary={showFiat ? secondaryCurrencyDisplay : undefined} secondary={showFiat ? secondaryCurrencyDisplay : undefined}
/> />

Loading…
Cancel
Save