lbry-desktop/src/renderer/modal/modalFirstReward/index.js
2018-10-29 13:25:22 -04:00

21 lines
492 B
JavaScript

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