mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-09-02 02:05:11 +00:00
pin samtime video
This commit is contained in:
parent
bb5c444f63
commit
a69875fa88
1 changed files with 11 additions and 10 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue