pin samtime video

This commit is contained in:
Sean Yesmunt 2021-03-30 22:10:29 -04:00
parent bb5c444f63
commit a69875fa88

View file

@ -33,6 +33,7 @@ type Props = {
feeAmount?: string, feeAmount?: string,
limitClaimsPerChannel?: number, limitClaimsPerChannel?: number,
streamTypes?: Array<string>, streamTypes?: Array<string>,
pin?: boolean,
}; };
function ClaimTilesDiscover(props: Props) { function ClaimTilesDiscover(props: Props) {
@ -55,7 +56,7 @@ function ClaimTilesDiscover(props: Props) {
limitClaimsPerChannel, limitClaimsPerChannel,
fetchingClaimSearchByQuery, fetchingClaimSearchByQuery,
streamTypes, streamTypes,
// pin, pin,
} = props; } = props;
const { location } = useHistory(); const { location } = useHistory();
const urlParams = new URLSearchParams(location.search); const urlParams = new URLSearchParams(location.search);
@ -140,15 +141,15 @@ function ClaimTilesDiscover(props: Props) {
const isLoading = fetchingClaimSearchByQuery[claimSearchCacheQuery]; const isLoading = fetchingClaimSearchByQuery[claimSearchCacheQuery];
const shouldPerformSearch = !isLoading && uris.length === 0; const shouldPerformSearch = !isLoading && uris.length === 0;
// const fixUri = 'lbry://@ElectroBOOM#9/remove-your-mustache#9'; const fixUri = 'lbry://@samtime#1/us-gov-tries-suing-a-cryptocurrency-lbry#8';
// if (pin && uris && uris.length > 2 && window.location.pathname === '/') { if (pin && uris && uris.length > 2 && window.location.pathname === '/') {
// if (uris.indexOf(fixUri) !== -1) { if (uris.indexOf(fixUri) !== -1) {
// uris.splice(uris.indexOf(fixUri), 1); uris.splice(uris.indexOf(fixUri), 1);
// } else { } else {
// uris.pop(); uris.pop();
// } }
// uris.splice(2, 0, fixUri); uris.splice(2, 0, fixUri);
// } }
React.useEffect(() => { React.useEffect(() => {
if (shouldPerformSearch) { if (shouldPerformSearch) {