import React from 'react' import PropTypes from 'prop-types' import Moment from 'react-moment' import QRCode from 'qrcode.react' import copy from 'copy-to-clipboard' import { showNotification } from 'lib/utils/notifications' import FaAngleDown from 'react-icons/lib/fa/angle-down' import Value from 'components/Value' import Countdown from '../Countdown' import styles from './InvoiceModal.scss' const InvoiceModal = ({ item: invoice, ticker, currentTicker, toggleCurrencyProps: { setActivityModalCurrencyFilters, showCurrencyFilters, currencyName, currentCurrencyFilters, onCurrencyFilterClick } }) => { const copyPaymentRequest = () => { copy(invoice.payment_request) showNotification('Noice', 'Successfully copied to clipboard') } const countDownDate = parseInt(invoice.creation_date, 10) + parseInt(invoice.expiry, 10) return (

Payment Request

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

{invoice.creation_date * 1000}

{!invoice.settled &&

Not Paid

} {invoice.settled &&

Paid

}

Memo

{invoice.memo}

Request

{invoice.payment_request}

Save as image
Copy Request
) } InvoiceModal.propTypes = { item: PropTypes.object.isRequired, ticker: PropTypes.object.isRequired, currentTicker: PropTypes.object.isRequired, toggleCurrencyProps: PropTypes.object.isRequired } export default InvoiceModal