provide selector for placeholder stream #400
3 changed files with 26 additions and 4 deletions
9
dist/bundle.es.js
vendored
9
dist/bundle.es.js
vendored
|
@ -2684,6 +2684,14 @@ const makeSelectClaimHasSource = uri => reselect.createSelector(makeSelectClaimF
|
||||||
return Boolean(claim.value.source);
|
return Boolean(claim.value.source);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const makeSelectClaimIsStreamPlaceholder = uri => reselect.createSelector(makeSelectClaimForUri(uri), claim => {
|
||||||
|
if (!claim) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return Boolean(claim.value_type === 'stream' && !claim.value.source);
|
||||||
|
});
|
||||||
|
|
||||||
const makeSelectTotalStakedAmountForChannelUri = uri => reselect.createSelector(makeSelectClaimForUri(uri), claim => {
|
const makeSelectTotalStakedAmountForChannelUri = uri => reselect.createSelector(makeSelectClaimForUri(uri), claim => {
|
||||||
if (!claim || !claim.amount || !claim.meta || !claim.meta.support_amount) {
|
if (!claim || !claim.amount || !claim.meta || !claim.meta.support_amount) {
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -6623,6 +6631,7 @@ exports.makeSelectClaimHasSource = makeSelectClaimHasSource;
|
||||||
exports.makeSelectClaimIsMine = makeSelectClaimIsMine;
|
exports.makeSelectClaimIsMine = makeSelectClaimIsMine;
|
||||||
exports.makeSelectClaimIsNsfw = makeSelectClaimIsNsfw;
|
exports.makeSelectClaimIsNsfw = makeSelectClaimIsNsfw;
|
||||||
exports.makeSelectClaimIsPending = makeSelectClaimIsPending;
|
exports.makeSelectClaimIsPending = makeSelectClaimIsPending;
|
||||||
|
exports.makeSelectClaimIsStreamPlaceholder = makeSelectClaimIsStreamPlaceholder;
|
||||||
exports.makeSelectClaimWasPurchased = makeSelectClaimWasPurchased;
|
exports.makeSelectClaimWasPurchased = makeSelectClaimWasPurchased;
|
||||||
exports.makeSelectClaimsInChannelForCurrentPageState = makeSelectClaimsInChannelForCurrentPageState;
|
exports.makeSelectClaimsInChannelForCurrentPageState = makeSelectClaimsInChannelForCurrentPageState;
|
||||||
exports.makeSelectClaimsInChannelForPage = makeSelectClaimsInChannelForPage;
|
exports.makeSelectClaimsInChannelForPage = makeSelectClaimsInChannelForPage;
|
||||||
|
|
|
@ -189,6 +189,7 @@ export {
|
||||||
makeSelectAbandoningClaimById,
|
makeSelectAbandoningClaimById,
|
||||||
makeSelectIsAbandoningClaimForUri,
|
makeSelectIsAbandoningClaimForUri,
|
||||||
makeSelectClaimHasSource,
|
makeSelectClaimHasSource,
|
||||||
|
makeSelectClaimIsStreamPlaceholder,
|
||||||
selectPendingIds,
|
selectPendingIds,
|
||||||
selectReflectingById,
|
selectReflectingById,
|
||||||
makeSelectClaimForClaimId,
|
makeSelectClaimForClaimId,
|
||||||
|
|
|
@ -871,6 +871,18 @@ export const makeSelectClaimHasSource = (uri: string) =>
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
export const makeSelectClaimIsStreamPlaceholder = (uri: string) =>
|
||||||
|
createSelector(
|
||||||
|
makeSelectClaimForUri(uri),
|
||||||
|
claim => {
|
||||||
|
if (!claim) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return Boolean(claim.value_type === 'stream' && !claim.value.source);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
export const makeSelectTotalStakedAmountForChannelUri = (uri: string) =>
|
export const makeSelectTotalStakedAmountForChannelUri = (uri: string) =>
|
||||||
createSelector(
|
createSelector(
|
||||||
makeSelectClaimForUri(uri),
|
makeSelectClaimForUri(uri),
|
||||||
|
|
Loading…
Reference in a new issue