hide block button on channel discovery page
This commit is contained in:
parent
73c60f62ac
commit
cc94cb6745
3 changed files with 27 additions and 18 deletions
|
@ -32,6 +32,7 @@ type Props = {
|
|||
showUnresolvedClaims?: boolean,
|
||||
renderProperties: ?(Claim) => Node,
|
||||
includeSupportAction?: boolean,
|
||||
hideBlock: boolean,
|
||||
};
|
||||
|
||||
export default function ClaimList(props: Props) {
|
||||
|
@ -53,6 +54,7 @@ export default function ClaimList(props: Props) {
|
|||
showUnresolvedClaims,
|
||||
renderProperties,
|
||||
includeSupportAction,
|
||||
hideBlock,
|
||||
} = props;
|
||||
const [scrollBottomCbMap, setScrollBottomCbMap] = useState({});
|
||||
const [currentSort, setCurrentSort] = usePersistedState(persistedStorageKey, SORT_NEW);
|
||||
|
@ -140,6 +142,7 @@ export default function ClaimList(props: Props) {
|
|||
showUnresolvedClaim={showUnresolvedClaims}
|
||||
properties={renderProperties || (type !== 'small' ? undefined : false)}
|
||||
showUserBlocked={showHiddenByUser}
|
||||
hideBlock={hideBlock}
|
||||
customShouldHide={(claim: StreamClaim) => {
|
||||
// Hack to hide spee.ch thumbnail publishes
|
||||
// If it meets these requirements, it was probably uploaded here:
|
||||
|
|
|
@ -55,6 +55,7 @@ type Props = {
|
|||
renderProperties?: Claim => Node,
|
||||
includeSupportAction?: boolean,
|
||||
noInfiniteScroll: boolean,
|
||||
hideBlock: boolean,
|
||||
};
|
||||
|
||||
function ClaimListDiscover(props: Props) {
|
||||
|
@ -82,6 +83,7 @@ function ClaimListDiscover(props: Props) {
|
|||
renderProperties,
|
||||
includeSupportAction,
|
||||
noInfiniteScroll,
|
||||
hideBlock,
|
||||
} = props;
|
||||
const didNavigateForward = history.action === 'PUSH';
|
||||
const [page, setPage] = useState(1);
|
||||
|
@ -296,6 +298,7 @@ function ClaimListDiscover(props: Props) {
|
|||
empty={noResults}
|
||||
renderProperties={renderProperties}
|
||||
includeSupportAction={includeSupportAction}
|
||||
hideBlock={hideBlock}
|
||||
/>
|
||||
|
||||
<div className="card">
|
||||
|
|
|
@ -21,12 +21,14 @@ function UserChannelFollowIntro(props: Props) {
|
|||
'LBRY works better if you find and follow at least 5 creators you like. You can also block channels you never want to see.'
|
||||
)}
|
||||
</p>
|
||||
<div className="section__body">
|
||||
<ClaimListDiscover
|
||||
defaultTypeSort={TYPE_TOP}
|
||||
defaultTimeSort={TIME_ALL}
|
||||
pageSize={99}
|
||||
claimType="channel"
|
||||
noInfiniteScroll
|
||||
hideBlock
|
||||
/>
|
||||
{followingCount > 0 && (
|
||||
<Nag
|
||||
|
@ -40,6 +42,7 @@ function UserChannelFollowIntro(props: Props) {
|
|||
onClick={onContinue}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
</React.Fragment>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue