2020-06-15 16:33:03 -04:00
|
|
|
import { makeSelectRewardByType } from 'redux/selectors/rewards';
|
|
|
|
import rewards from 'rewards';
|
2017-12-21 18:08:54 -03:00
|
|
|
import { connect } from 'react-redux';
|
2018-10-29 13:23:53 -04:00
|
|
|
import { doHideModal } from 'redux/actions/app';
|
2017-12-21 18:08:54 -03:00
|
|
|
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 {
|
2018-05-17 16:31:49 -04:00
|
|
|
reward: selectReward(state, rewards.TYPE_NEW_USER),
|
2017-07-24 18:59:26 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
const perform = dispatch => ({
|
2018-10-29 13:23:53 -04:00
|
|
|
closeModal: () => dispatch(doHideModal()),
|
2017-07-24 18:59:26 -04:00
|
|
|
});
|
|
|
|
|
2020-06-15 16:33:03 -04:00
|
|
|
export default connect(select, perform)(ModalFirstReward);
|