madiator.com/ui/page/channelNew/index.js

21 lines
609 B
JavaScript
Raw Normal View History

2021-08-16 12:11:25 +02:00
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);