lbry-desktop/ui/page/transactionHistory/view.jsx

38 lines
890 B
React
Raw Normal View History

// @flow
import React from 'react';
import TransactionList from 'component/transactionList';
2018-03-26 14:32:43 -07:00
import Page from 'component/page';
type Props = {
2019-11-01 15:17:06 -04:00
fetchTransactions: () => void,
fetchingTransactions: boolean,
2019-09-22 22:47:07 -04:00
filteredTransactionPage: Array<{}>,
filteredTransactionsCount: number,
};
class TransactionHistoryPage extends React.PureComponent<Props> {
componentDidMount() {
2019-11-01 13:27:01 -04:00
const { fetchTransactions } = this.props;
2019-11-01 15:17:06 -04:00
fetchTransactions();
2017-08-20 17:42:00 -04:00
}
render() {
2019-09-22 22:47:07 -04:00
const { filteredTransactionPage, filteredTransactionsCount } = this.props;
2017-08-20 17:42:00 -04:00
return (
2018-03-26 14:32:43 -07:00
<Page>
2019-09-26 12:07:11 -04:00
<section className="card">
2019-09-22 22:47:07 -04:00
<TransactionList
transactions={filteredTransactionPage}
transactionCount={filteredTransactionsCount}
title={__('Transaction History')}
/>
2017-08-20 17:42:00 -04:00
</section>
2018-03-26 14:32:43 -07:00
</Page>
2017-08-20 17:42:00 -04:00
);
}
}
export default TransactionHistoryPage;