import React from 'react' import PropTypes from 'prop-types' import Moment from 'react-moment' import FaAngleDown from 'react-icons/lib/fa/angle-down' import Isvg from 'react-inlinesvg' import paperPlane from 'icons/paper_plane.svg' import hand from 'icons/hand.svg' import link from 'icons/link.svg' import { blockExplorer } from 'lib/utils' import Value from 'components/Value' import styles from './TransactionModal.scss' const TransactionModal = ({ item: transaction, ticker, currentTicker, network, toggleCurrencyProps: { setActivityModalCurrencyFilters, showCurrencyFilters, currencyName, currentCurrencyFilters, onCurrencyFilterClick } }) => (
{transaction.received ? (
Received
) : (
Sent
)}
blockExplorer.showTransaction(network, transaction.tx_hash)} > On-Chain
{currencyName} fee

{transaction.received ? '+' : '-'}

setActivityModalCurrencyFilters(!showCurrencyFilters)} > {currencyName}
    {currentCurrencyFilters.map(filter => (
  • onCurrencyFilterClick(filter.key)}> {filter.name}
  • ))}
{transaction.time_stamp * 1000}
) TransactionModal.propTypes = { item: PropTypes.object.isRequired, ticker: PropTypes.object.isRequired, currentTicker: PropTypes.object.isRequired, toggleCurrencyProps: PropTypes.object.isRequired, network: PropTypes.object.isRequired } export default TransactionModal