b16688754b
enable visiting /$/CODE or /$/invite/CHANNEL enable visiting /ANY?=[CODE|CHANNEL] to set and claim enable /$/invite selecting channels for referral codes add ?r=CODE to share modal enable setting referrer and claiming reward from rewards page
18 lines
518 B
JavaScript
18 lines
518 B
JavaScript
import * as MODALS from 'constants/modal_types';
|
|
import { connect } from 'react-redux';
|
|
import { doOpenModal } from 'redux/actions/app';
|
|
import RewardTile from './view';
|
|
import { selectUser } from 'lbryinc';
|
|
|
|
const select = state => ({
|
|
user: selectUser(state),
|
|
});
|
|
const perform = dispatch => ({
|
|
openRewardCodeModal: () => dispatch(doOpenModal(MODALS.REWARD_GENERATED_CODE)),
|
|
openSetReferrerModal: () => dispatch(doOpenModal(MODALS.SET_REFERRER)),
|
|
});
|
|
|
|
export default connect(
|
|
select,
|
|
perform
|
|
)(RewardTile);
|