user youtubeChannels selector
This commit is contained in:
parent
f8bba34b34
commit
afdba5fd5d
4 changed files with 14 additions and 0 deletions
2
dist/bundle.es.js
vendored
2
dist/bundle.es.js
vendored
|
@ -972,6 +972,7 @@ const selectUserPhone = reselect.createSelector(selectUser, user => user ? user.
|
|||
const selectUserCountryCode = reselect.createSelector(selectUser, user => user ? user.country_code : null);
|
||||
const selectEmailToVerify = reselect.createSelector(selectState$2, selectUserEmail, (state, userEmail) => state.emailToVerify || userEmail);
|
||||
const selectPhoneToVerify = reselect.createSelector(selectState$2, selectUserPhone, (state, userPhone) => state.phoneToVerify || userPhone);
|
||||
const selectYoutubeChannels = reselect.createSelector(selectUser, user => user ? user.youtube_channels : null);
|
||||
const selectUserIsRewardApproved = reselect.createSelector(selectUser, user => user && user.is_reward_approved);
|
||||
const selectEmailNewIsPending = reselect.createSelector(selectState$2, state => state.emailNewIsPending);
|
||||
const selectEmailNewErrorMessage = reselect.createSelector(selectState$2, state => state.emailNewErrorMessage);
|
||||
|
@ -3046,6 +3047,7 @@ exports.selectUserIsVerificationCandidate = selectUserIsVerificationCandidate;
|
|||
exports.selectUserPhone = selectUserPhone;
|
||||
exports.selectUserVerifiedEmail = selectUserVerifiedEmail;
|
||||
exports.selectViewMode = selectViewMode;
|
||||
exports.selectYoutubeChannels = selectYoutubeChannels;
|
||||
exports.setSubscriptionLatest = setSubscriptionLatest;
|
||||
exports.statsReducer = statsReducer;
|
||||
exports.subscriptionsReducer = subscriptions;
|
||||
|
|
6
dist/bundle.js
vendored
6
dist/bundle.js
vendored
|
@ -381,6 +381,8 @@ __webpack_require__.r(__webpack_exports__);
|
|||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "selectUserVerifiedEmail", function() { return redux_selectors_user__WEBPACK_IMPORTED_MODULE_27__["selectUserVerifiedEmail"]; });
|
||||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "selectYoutubeChannels", function() { return redux_selectors_user__WEBPACK_IMPORTED_MODULE_27__["selectYoutubeChannels"]; });
|
||||
|
||||
/* harmony import */ var redux_selectors_cost_info__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(38);
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "makeSelectFetchingCostInfoForUri", function() { return redux_selectors_cost_info__WEBPACK_IMPORTED_MODULE_28__["makeSelectFetchingCostInfoForUri"]; });
|
||||
|
||||
|
@ -2261,6 +2263,7 @@ __webpack_require__.r(__webpack_exports__);
|
|||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "selectUserCountryCode", function() { return selectUserCountryCode; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "selectEmailToVerify", function() { return selectEmailToVerify; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "selectPhoneToVerify", function() { return selectPhoneToVerify; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "selectYoutubeChannels", function() { return selectYoutubeChannels; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "selectUserIsRewardApproved", function() { return selectUserIsRewardApproved; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "selectEmailNewIsPending", function() { return selectEmailNewIsPending; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "selectEmailNewErrorMessage", function() { return selectEmailNewErrorMessage; });
|
||||
|
@ -2312,6 +2315,9 @@ var selectEmailToVerify = Object(reselect__WEBPACK_IMPORTED_MODULE_0__["createSe
|
|||
var selectPhoneToVerify = Object(reselect__WEBPACK_IMPORTED_MODULE_0__["createSelector"])(selectState, selectUserPhone, function (state, userPhone) {
|
||||
return state.phoneToVerify || userPhone;
|
||||
});
|
||||
var selectYoutubeChannels = Object(reselect__WEBPACK_IMPORTED_MODULE_0__["createSelector"])(selectUser, function (user) {
|
||||
return user ? user.youtube_channels : null;
|
||||
});
|
||||
var selectUserIsRewardApproved = Object(reselect__WEBPACK_IMPORTED_MODULE_0__["createSelector"])(selectUser, function (user) {
|
||||
return user && user.is_reward_approved;
|
||||
});
|
||||
|
|
|
@ -151,6 +151,7 @@ export {
|
|||
selectUserInviteNewErrorMessage,
|
||||
selectUserInviteReferralLink,
|
||||
selectUserVerifiedEmail,
|
||||
selectYoutubeChannels,
|
||||
} from 'redux/selectors/user';
|
||||
export {
|
||||
makeSelectFetchingCostInfoForUri,
|
||||
|
|
|
@ -38,6 +38,11 @@ export const selectPhoneToVerify = createSelector(
|
|||
(state, userPhone) => state.phoneToVerify || userPhone
|
||||
);
|
||||
|
||||
export const selectYoutubeChannels = createSelector(
|
||||
selectUser,
|
||||
user => (user ? user.youtube_channels : null)
|
||||
);
|
||||
|
||||
export const selectUserIsRewardApproved = createSelector(
|
||||
selectUser,
|
||||
user => user && user.is_reward_approved
|
||||
|
|
Loading…
Reference in a new issue