import React from 'react' import PropTypes from 'prop-types' import Moment from 'react-moment' import 'moment-timezone' import QRCode from 'qrcode.react' import copy from 'copy-to-clipboard' import { showNotification } from 'notifications' import { FaAngleDown } from 'react-icons/lib/fa' import { btc } from 'utils' import Value from 'components/Value' import styles from './InvoiceModal.scss' const InvoiceModal = ({ invoice, ticker, currentTicker, toggleCurrencyProps: { setActivityModalCurrencyFilters, showCurrencyFilters, currencyName, currentCurrencyFilters, setCurrency } }) => { const copyPaymentRequest = () => { copy(invoice.payment_request) showNotification('Noice', 'Successfully copied to clipboard') } const onCurrencyFilterClick = (currency) => { setCurrency(currency) setActivityModalCurrencyFilters(false) } return (

setActivityModalCurrencyFilters(!showCurrencyFilters)}> {currencyName}
    { currentCurrencyFilters.map(filter =>
  • onCurrencyFilterClick(filter.key)}>{filter.name}
  • ) }

{invoice.creation_date * 1000}

{!invoice.settled && 'Not Paid'}

Memo

{invoice.memo}

Request

{invoice.payment_request}

Save as image
Copy Request
) } InvoiceModal.propTypes = { invoice: PropTypes.object.isRequired } export default InvoiceModal