recon followDisc

This commit is contained in:
zeppi 2021-07-21 16:42:15 -04:00 committed by jessopb
parent 91b908ad50
commit 573ed1e88c

View file

@ -8,7 +8,7 @@ import ClaimTilesDiscover from 'component/claimTilesDiscover';
import ClaimListDiscover from 'component/claimListDiscover'; import ClaimListDiscover from 'component/claimListDiscover';
import * as CS from 'constants/claim_search'; import * as CS from 'constants/claim_search';
import { toCapitalCase } from 'util/string'; import { toCapitalCase } from 'util/string';
import { CUSTOM_HOMEPAGE } from 'config'; import { CUSTOM_HOMEPAGE, SIMPLE_SITE } from 'config';
const MORE_CHANNELS_ANCHOR = 'MoreChannels'; const MORE_CHANNELS_ANCHOR = 'MoreChannels';
@ -49,16 +49,6 @@ function ChannelsFollowingDiscover(props: Props) {
}, },
}); });
rowData.push({
title: 'Latest From @lbrycast',
link: `/@lbrycast:4`,
options: {
orderBy: ['release_time'],
pageSize: 8,
channelIds: ['4c29f8b013adea4d5cca1861fb2161d5089613ea'],
},
});
rowData.push({ rowData.push({
title: 'Trending Channels', title: 'Trending Channels',
link: `/$/${PAGES.DISCOVER}?claim_type=channel`, link: `/$/${PAGES.DISCOVER}?claim_type=channel`,
@ -105,29 +95,32 @@ function ChannelsFollowingDiscover(props: Props) {
return ( return (
<Page> <Page>
{rowDataWithGenericOptions.map(({ title, link, help, options = {} }) => ( {!SIMPLE_SITE &&
<div key={title} className="claim-grid__wrapper"> rowDataWithGenericOptions.map(({ title, link, help, options = {} }) => (
<h1 className="section__actions"> <div key={title} className="claim-grid__wrapper">
{link ? ( <h1 className="section__actions">
<Button {link ? (
className="claim-grid__title" <Button
button="link" className="claim-grid__title"
navigate={link} button="link"
iconRight={ICONS.ARROW_RIGHT} navigate={link}
label={__(title)} iconRight={ICONS.ARROW_RIGHT}
/> label={__(title)}
) : ( />
<span className="claim-grid__title">{__(title)}</span> ) : (
)} <span className="claim-grid__title">{__(title)}</span>
{help} )}
</h1> {help}
</h1>
<ClaimTilesDiscover {...options} /> <ClaimTilesDiscover {...options} />
</div> </div>
))} ))}
<h1 id={MORE_CHANNELS_ANCHOR} className="claim-grid__title"> {!SIMPLE_SITE && (
{__('More Channels')} <h1 id={MORE_CHANNELS_ANCHOR} className="claim-grid__title">
</h1> {__('More Channels')}
</h1>
)}
<ClaimListDiscover <ClaimListDiscover
defaultOrderBy={CS.ORDER_BY_TRENDING} defaultOrderBy={CS.ORDER_BY_TRENDING}
defaultFreshness={CS.FRESH_ALL} defaultFreshness={CS.FRESH_ALL}