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

0 && styles.active}`}>{transaction.amount > 0 ? '+' : '-'}

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