2017-08-20 23:42:00 +02:00
|
|
|
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 {
|
|
|
|
selectBalance,
|
|
|
|
selectRecentTransactions,
|
|
|
|
selectHasTransactions,
|
|
|
|
selectIsFetchingTransactions,
|
2017-11-13 22:02:23 +01:00
|
|
|
} from "redux/selectors/wallet";
|
2017-08-20 23:42:00 +02:00
|
|
|
|
|
|
|
import TransactionListRecent from "./view";
|
|
|
|
|
|
|
|
const select = state => ({
|
|
|
|
fetchingTransactions: selectIsFetchingTransactions(state),
|
|
|
|
transactions: selectRecentTransactions(state),
|
|
|
|
hasTransactions: selectHasTransactions(state),
|
|
|
|
});
|
|
|
|
|
|
|
|
const perform = dispatch => ({
|
|
|
|
fetchTransactions: () => dispatch(doFetchTransactions()),
|
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(select, perform)(TransactionListRecent);
|