lbry-desktop/src/renderer/page/transactionHistory/index.js

20 lines
573 B
JavaScript
Raw Normal View History

import React from "react";
import { connect } from "react-redux";
2017-11-13 22:02:23 +01:00
import { doFetchTransactions } from "redux/actions/wallet";
2017-08-20 23:42:00 +02:00
import {
selectTransactionItems,
selectIsFetchingTransactions,
2017-11-13 22:02:23 +01:00
} from "redux/selectors/wallet";
2017-08-20 23:42:00 +02:00
import TransactionHistoryPage from "./view";
2017-08-20 23:42:00 +02:00
const select = state => ({
fetchingTransactions: selectIsFetchingTransactions(state),
transactions: selectTransactionItems(state),
});
const perform = dispatch => ({
fetchTransactions: () => dispatch(doFetchTransactions()),
});
export default connect(select, perform)(TransactionHistoryPage);