lbry-desktop/src/ui/component/rewardSummary/index.js

19 lines
537 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
2019-05-07 23:38:29 +02:00
import { selectUnclaimedRewardValue, selectFetchingRewards, doRewardList, doFetchRewardedContent } from 'lbryinc';
import RewardSummary from './view';
2017-08-20 23:42:00 +02:00
const select = state => ({
unclaimedRewardAmount: selectUnclaimedRewardValue(state),
fetching: selectFetchingRewards(state),
2017-08-20 23:42:00 +02:00
});
const perform = dispatch => ({
fetchRewards: () => dispatch(doRewardList()),
fetchRewardedContent: () => dispatch(doFetchRewardedContent()),
});
export default connect(
select,
perform
)(RewardSummary);