Skip to content

Commit

Permalink
Show a 'send eth' button on home screen in full screen mode
Browse files Browse the repository at this point in the history
  • Loading branch information
darkwing committed Nov 12, 2020
1 parent 552ea13 commit 5f949d2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ui/app/components/app/asset-list/asset-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down Expand Up @@ -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}
/>
Expand Down

0 comments on commit 5f949d2

Please sign in to comment.