lbry-desktop/ui/js/page/transactionHistory/index.js
2017-11-13 16:02:23 -05:00

19 lines
573 B
JavaScript

import React from "react";
import { connect } from "react-redux";
import { doFetchTransactions } from "redux/actions/wallet";
import {
selectTransactionItems,
selectIsFetchingTransactions,
} from "redux/selectors/wallet";
import TransactionHistoryPage from "./view";
const select = state => ({
fetchingTransactions: selectIsFetchingTransactions(state),
transactions: selectTransactionItems(state),
});
const perform = dispatch => ({
fetchTransactions: () => dispatch(doFetchTransactions()),
});
export default connect(select, perform)(TransactionHistoryPage);