2018-09-24 05:44:42 +02:00
|
|
|
import { rewards, makeSelectRewardByType } from 'lbryinc';
|
2017-12-21 22:08:54 +01:00
|
|
|
import { connect } from 'react-redux';
|
2018-10-29 18:23:53 +01:00
|
|
|
import { doHideModal } from 'redux/actions/app';
|
2017-12-21 22:08:54 +01:00
|
|
|
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 {
|
2018-05-17 22:31:49 +02:00
|
|
|
reward: selectReward(state, rewards.TYPE_NEW_USER),
|
2017-07-25 00:59:26 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
const perform = dispatch => ({
|
2018-10-29 18:23:53 +01:00
|
|
|
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);
|