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