lbry-desktop/ui/page/channelNew/index.js

20 lines
621 B
JavaScript

import REWARD_TYPES from 'rewards';
import { connect } from 'react-redux';
import { selectBalance } from 'redux/selectors/wallet';
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);