2017-08-19 05:08:01 +02:00
|
|
|
import React from "react";
|
|
|
|
import { connect } from "react-redux";
|
2017-08-20 23:42:00 +02:00
|
|
|
import { doFetchTransactions } from "actions/wallet";
|
|
|
|
import {
|
|
|
|
selectTransactionItems,
|
|
|
|
selectIsFetchingTransactions,
|
|
|
|
} from "selectors/wallet";
|
|
|
|
import TransactionHistoryPage from "./view";
|
2017-08-19 05:08:01 +02:00
|
|
|
|
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);
|