lbry-desktop/ui/modal/modalFirstReward/index.js

20 lines
517 B
JavaScript
Raw Permalink Normal View History

import { makeSelectRewardByType } from 'redux/selectors/rewards';
import rewards from 'rewards';
import { connect } from 'react-redux';
import { doHideModal } from 'redux/actions/app';
import ModalFirstReward from './view';
2017-07-25 00:59:26 +02:00
2018-04-18 06:03:01 +02:00
const select = state => {
2017-07-25 00:59:26 +02:00
const selectReward = makeSelectRewardByType();
return {
reward: selectReward(state, rewards.TYPE_NEW_USER),
2017-07-25 00:59:26 +02:00
};
};
const perform = dispatch => ({
closeModal: () => dispatch(doHideModal()),
2017-07-25 00:59:26 +02:00
});
export default connect(select, perform)(ModalFirstReward);