create selectPendingClaims
This commit is contained in:
parent
629c3273f5
commit
3d9bfdd2d3
3 changed files with 10 additions and 0 deletions
3
dist/bundle.es.js
vendored
3
dist/bundle.es.js
vendored
|
@ -2234,6 +2234,8 @@ const selectAllClaimsByChannel = reselect.createSelector(selectState$1, state =>
|
||||||
|
|
||||||
const selectPendingIds = reselect.createSelector(selectState$1, state => state.pendingIds || []);
|
const selectPendingIds = reselect.createSelector(selectState$1, state => state.pendingIds || []);
|
||||||
|
|
||||||
|
const selectPendingClaims = reselect.createSelector(selectPendingIds, selectClaimsById, (pendingIds, byId) => pendingIds.map(id => byId[id]));
|
||||||
|
|
||||||
const makeSelectClaimIsPending = uri => reselect.createSelector(selectClaimIdsByUri, selectPendingIds, (idsByUri, pendingIds) => {
|
const makeSelectClaimIsPending = uri => reselect.createSelector(selectClaimIdsByUri, selectPendingIds, (idsByUri, pendingIds) => {
|
||||||
const claimId = idsByUri[normalizeURI(uri)];
|
const claimId = idsByUri[normalizeURI(uri)];
|
||||||
|
|
||||||
|
@ -6728,6 +6730,7 @@ exports.selectMyClaimsWithoutChannels = selectMyClaimsWithoutChannels;
|
||||||
exports.selectMyPurchases = selectMyPurchases;
|
exports.selectMyPurchases = selectMyPurchases;
|
||||||
exports.selectMyPurchasesCount = selectMyPurchasesCount;
|
exports.selectMyPurchasesCount = selectMyPurchasesCount;
|
||||||
exports.selectMyStreamUrlsCount = selectMyStreamUrlsCount;
|
exports.selectMyStreamUrlsCount = selectMyStreamUrlsCount;
|
||||||
|
exports.selectPendingClaims = selectPendingClaims;
|
||||||
exports.selectPendingConsolidateTxid = selectPendingConsolidateTxid;
|
exports.selectPendingConsolidateTxid = selectPendingConsolidateTxid;
|
||||||
exports.selectPendingIds = selectPendingIds;
|
exports.selectPendingIds = selectPendingIds;
|
||||||
exports.selectPendingMassClaimTxid = selectPendingMassClaimTxid;
|
exports.selectPendingMassClaimTxid = selectPendingMassClaimTxid;
|
||||||
|
|
|
@ -201,6 +201,7 @@ export {
|
||||||
selectAllFetchingChannelClaims,
|
selectAllFetchingChannelClaims,
|
||||||
selectIsFetchingClaimListMine,
|
selectIsFetchingClaimListMine,
|
||||||
selectMyClaims,
|
selectMyClaims,
|
||||||
|
selectPendingClaims,
|
||||||
selectMyClaimsWithoutChannels,
|
selectMyClaimsWithoutChannels,
|
||||||
selectMyChannelUrls,
|
selectMyChannelUrls,
|
||||||
selectMyClaimUrisWithoutChannels,
|
selectMyClaimUrisWithoutChannels,
|
||||||
|
|
|
@ -75,6 +75,12 @@ export const selectPendingIds = createSelector(
|
||||||
state => state.pendingIds || []
|
state => state.pendingIds || []
|
||||||
);
|
);
|
||||||
|
|
||||||
|
export const selectPendingClaims = createSelector(
|
||||||
|
selectPendingIds,
|
||||||
|
selectClaimsById,
|
||||||
|
(pendingIds, byId) => pendingIds.map(id => byId[id])
|
||||||
|
);
|
||||||
|
|
||||||
export const makeSelectClaimIsPending = (uri: string) =>
|
export const makeSelectClaimIsPending = (uri: string) =>
|
||||||
createSelector(
|
createSelector(
|
||||||
selectClaimIdsByUri,
|
selectClaimIdsByUri,
|
||||||
|
|
Loading…
Reference in a new issue