2018-10-29 13:23:53 -04:00
|
|
|
import * as MODALS from 'constants/modal_types';
|
2017-12-21 18:08:54 -03:00
|
|
|
import { connect } from 'react-redux';
|
2018-11-27 10:43:58 -05:00
|
|
|
import { doOpenModal } from 'redux/actions/app';
|
2020-06-15 16:33:03 -04:00
|
|
|
import { selectUser } from 'redux/selectors/user';
|
2017-12-21 18:08:54 -03:00
|
|
|
import RewardTile from './view';
|
2017-08-18 23:08:01 -04:00
|
|
|
|
2020-01-14 15:44:07 -05:00
|
|
|
const select = state => ({
|
|
|
|
user: selectUser(state),
|
|
|
|
});
|
2018-09-25 20:12:07 -04:00
|
|
|
const perform = dispatch => ({
|
2018-10-29 13:23:53 -04:00
|
|
|
openRewardCodeModal: () => dispatch(doOpenModal(MODALS.REWARD_GENERATED_CODE)),
|
2020-01-14 15:44:07 -05:00
|
|
|
openSetReferrerModal: () => dispatch(doOpenModal(MODALS.SET_REFERRER)),
|
2018-09-25 20:12:07 -04:00
|
|
|
});
|
|
|
|
|
2020-06-15 16:33:03 -04:00
|
|
|
export default connect(select, perform)(RewardTile);
|