ShowPage: remove unused props
This commit is contained in:
parent
4643dbd767
commit
a11d8279be
2 changed files with 2 additions and 8 deletions
|
@ -1,15 +1,11 @@
|
||||||
import { DOMAIN } from 'config';
|
import { DOMAIN } from 'config';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
import { withRouter } from 'react-router';
|
import { withRouter } from 'react-router';
|
||||||
import { PAGE_SIZE } from 'constants/claim';
|
|
||||||
import {
|
import {
|
||||||
selectClaimForUri,
|
selectClaimForUri,
|
||||||
selectIsUriResolving,
|
selectIsUriResolving,
|
||||||
makeSelectTotalPagesForChannel,
|
|
||||||
selectTitleForUri,
|
|
||||||
selectClaimIsMine,
|
selectClaimIsMine,
|
||||||
makeSelectClaimIsPending,
|
makeSelectClaimIsPending,
|
||||||
selectIsStreamPlaceholderForUri,
|
|
||||||
selectGeoRestrictionForUri,
|
selectGeoRestrictionForUri,
|
||||||
} from 'redux/selectors/claims';
|
} from 'redux/selectors/claims';
|
||||||
import {
|
import {
|
||||||
|
@ -20,6 +16,7 @@ import {
|
||||||
import { doResolveUri } from 'redux/actions/claims';
|
import { doResolveUri } from 'redux/actions/claims';
|
||||||
import { doBeginPublish } from 'redux/actions/publish';
|
import { doBeginPublish } from 'redux/actions/publish';
|
||||||
import { doFetchItemsInCollection } from 'redux/actions/collections';
|
import { doFetchItemsInCollection } from 'redux/actions/collections';
|
||||||
|
import { isStreamPlaceholderClaim } from 'util/claim';
|
||||||
import { normalizeURI } from 'util/lbryURI';
|
import { normalizeURI } from 'util/lbryURI';
|
||||||
import * as COLLECTIONS_CONSTS from 'constants/collections';
|
import * as COLLECTIONS_CONSTS from 'constants/collections';
|
||||||
import { selectIsSubscribedForUri } from 'redux/selectors/subscriptions';
|
import { selectIsSubscribedForUri } from 'redux/selectors/subscriptions';
|
||||||
|
@ -76,12 +73,10 @@ const select = (state, props) => {
|
||||||
claim,
|
claim,
|
||||||
isResolvingUri: selectIsUriResolving(state, uri),
|
isResolvingUri: selectIsUriResolving(state, uri),
|
||||||
blackListedOutpointMap: selectBlacklistedOutpointMap(state),
|
blackListedOutpointMap: selectBlacklistedOutpointMap(state),
|
||||||
totalPages: makeSelectTotalPagesForChannel(uri, PAGE_SIZE)(state),
|
|
||||||
isSubscribed: selectIsSubscribedForUri(state, uri),
|
isSubscribed: selectIsSubscribedForUri(state, uri),
|
||||||
title: selectTitleForUri(state, uri),
|
|
||||||
claimIsMine: selectClaimIsMine(state, claim),
|
claimIsMine: selectClaimIsMine(state, claim),
|
||||||
claimIsPending: makeSelectClaimIsPending(uri)(state),
|
claimIsPending: makeSelectClaimIsPending(uri)(state),
|
||||||
isLivestream: selectIsStreamPlaceholderForUri(state, uri),
|
isLivestream: isStreamPlaceholderClaim(claim),
|
||||||
collection: makeSelectCollectionForId(collectionId)(state),
|
collection: makeSelectCollectionForId(collectionId)(state),
|
||||||
collectionId,
|
collectionId,
|
||||||
collectionUrls: makeSelectUrlsForCollectionId(collectionId)(state),
|
collectionUrls: makeSelectUrlsForCollectionId(collectionId)(state),
|
||||||
|
|
|
@ -28,7 +28,6 @@ type Props = {
|
||||||
claim: StreamClaim,
|
claim: StreamClaim,
|
||||||
location: UrlLocation,
|
location: UrlLocation,
|
||||||
blackListedOutpointMap: { [string]: number },
|
blackListedOutpointMap: { [string]: number },
|
||||||
title: string,
|
|
||||||
claimIsMine: boolean,
|
claimIsMine: boolean,
|
||||||
claimIsPending: boolean,
|
claimIsPending: boolean,
|
||||||
isLivestream: boolean,
|
isLivestream: boolean,
|
||||||
|
|
Loading…
Reference in a new issue