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

22 lines
485 B
JavaScript
Raw Normal View History

2018-09-24 05:44:42 +02:00
import { rewards, makeSelectRewardByType } from 'lbryinc';
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
});
2018-09-24 05:44:42 +02:00
export default connect(
select,
perform
)(ModalFirstReward);