lbry-desktop/ui/component/rewardTile/index.js

19 lines
518 B
JavaScript
Raw Normal View History

import * as MODALS from 'constants/modal_types';
import { connect } from 'react-redux';
2018-11-27 16:43:58 +01:00
import { doOpenModal } from 'redux/actions/app';
import RewardTile from './view';
2020-01-14 21:44:07 +01:00
import { selectUser } from 'lbryinc';
2020-01-14 21:44:07 +01:00
const select = state => ({
user: selectUser(state),
});
2018-09-26 02:12:07 +02:00
const perform = dispatch => ({
openRewardCodeModal: () => dispatch(doOpenModal(MODALS.REWARD_GENERATED_CODE)),
2020-01-14 21:44:07 +01:00
openSetReferrerModal: () => dispatch(doOpenModal(MODALS.SET_REFERRER)),
2018-09-26 02:12:07 +02:00
});
export default connect(
2020-01-14 21:44:07 +01:00
select,
2018-09-26 02:12:07 +02:00
perform
)(RewardTile);