import React from 'react' import PropTypes from 'prop-types' import FaAngleUp from 'react-icons/lib/fa/angle-up' import FaAngleDown from 'react-icons/lib/fa/angle-down' import Isvg from 'react-inlinesvg' import { btc, blockExplorer } from 'lib/utils' import Value from 'components/Value' import AnimatedCheckmark from 'components/AnimatedCheckmark' import Settings from 'components/Settings' import zapLogo from 'icons/zap_logo.svg' import zapLogoBlack from 'icons/zap_logo_black.svg' import qrCode from 'icons/qrcode.svg' import { FormattedNumber, FormattedMessage } from 'react-intl' import messages from './messages' import styles from './Wallet.scss' const Wallet = ({ balance, info, openReceiveModal, ticker, currentTicker, openPayForm, openRequestForm, showPayLoadingScreen, showSuccessPayScreen, successTransactionScreen, currentCurrencyFilters, currencyName, setCurrency, setWalletCurrencyFilters, network, settingsProps, paymentTimeout, theme }) => { const fiatAmount = btc.satoshisToFiat( parseInt(balance.walletBalance, 10) + parseInt(balance.channelBalance, 10), currentTicker[ticker.fiatTicker].last ) const onCurrencyFilterClick = currency => { setCurrency(currency) setWalletCurrencyFilters(false) } return (