lbry-desktop/ui/page/channelNew/index.js
2021-04-04 22:16:45 -04:00

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);