import React from 'react'; import BusyIndicator from 'component/common/busy-indicator'; import TransactionList from 'component/transactionList'; import Page from 'component/page'; class TransactionHistoryPage extends React.PureComponent { componentWillMount() { this.props.fetchTransactions(); } render() { const { fetchingTransactions, transactions } = this.props; return (

{__('Transaction History')}

{fetchingTransactions && !transactions.length ? (
) : ( '' )} {transactions && transactions.length ? ( ) : (
{__("Looks like you don't have any transactions")}
)}
); } } export default TransactionHistoryPage;