mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-23 17:47:24 +00:00
19 lines
561 B
JavaScript
19 lines
561 B
JavaScript
import React from "react";
|
|
import { connect } from "react-redux";
|
|
import { doFetchTransactions } from "actions/wallet";
|
|
import {
|
|
selectTransactionItems,
|
|
selectIsFetchingTransactions,
|
|
} from "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);
|