20 lines
609 B
JavaScript
20 lines
609 B
JavaScript
import REWARD_TYPES from 'rewards';
|
|
import { connect } from 'react-redux';
|
|
import { selectBalance } from 'lbry-redux';
|
|
import { selectUserVerifiedEmail } from 'redux/selectors/user';
|
|
import { doClaimRewardType } from 'redux/actions/rewards';
|
|
import ChannelNew from './view';
|
|
|
|
const select = (state) => ({
|
|
balance: selectBalance(state),
|
|
isAuthenticated: selectUserVerifiedEmail(state),
|
|
});
|
|
|
|
export default connect(select, (dispatch) => ({
|
|
claimConfirmEmailReward: () =>
|
|
dispatch(
|
|
doClaimRewardType(REWARD_TYPES.TYPE_CONFIRM_EMAIL, {
|
|
notifyError: false,
|
|
})
|
|
),
|
|
}))(ChannelNew);
|