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

22 lines
485 B
JavaScript
Raw Normal View History

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