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

21 lines
609 B
JavaScript
Raw Normal View History

import REWARD_TYPES from 'rewards';
2020-06-29 21:54:07 +02:00
import { connect } from 'react-redux';
2020-08-25 21:54:06 +02:00
import { selectBalance } from 'lbry-redux';
import { selectUserVerifiedEmail } from 'redux/selectors/user';
import { doClaimRewardType } from 'redux/actions/rewards';
2020-06-29 21:54:07 +02:00
import ChannelNew from './view';
const select = (state) => ({
2020-08-25 21:54:06 +02:00
balance: selectBalance(state),
isAuthenticated: selectUserVerifiedEmail(state),
2020-08-25 21:54:06 +02:00
});
2020-06-29 21:54:07 +02:00
export default connect(select, (dispatch) => ({
claimConfirmEmailReward: () =>
dispatch(
doClaimRewardType(REWARD_TYPES.TYPE_CONFIRM_EMAIL, {
notifyError: false,
})
),
}))(ChannelNew);