/* @flow */ import React from 'react'; import styled from 'styled-components'; import { colors, H5, P } from 'trezor-ui-components'; import Transaction from 'components/Transaction'; import type { Network } from 'reducers/LocalStorageReducer'; import type { BaseProps } from '../../index'; // import testData from './test.data'; type Props = { pending: $PropertyType<$ElementType, 'pending'>, network: Network, }; const Wrapper = styled.div` padding-top: 20px; border-top: 1px solid ${colors.DIVIDER}; `; const NoTransactions = styled(P)``; const PendingTransactions = (props: Props) => { // const pending = props.pending.filter(tx => !tx.rejected).concat(testData); const pending = props.pending.filter(tx => !tx.rejected); return (
Pending transactions
{pending.length === 0 && ( There are no pending transactions )} {pending.map(tx => ( ))}
); }; export default PendingTransactions;