lbry-desktop/ui/modal/modalFirstReward/index.js
2019-11-11 13:27:29 -05:00

21 lines
485 B
JavaScript

import { rewards, makeSelectRewardByType } from 'lbryinc';
import { connect } from 'react-redux';
import { doHideModal } from 'redux/actions/app';
import ModalFirstReward from './view';
const select = state => {
const selectReward = makeSelectRewardByType();
return {
reward: selectReward(state, rewards.TYPE_NEW_USER),
};
};
const perform = dispatch => ({
closeModal: () => dispatch(doHideModal()),
});
export default connect(
select,
perform
)(ModalFirstReward);