recon followDisc
This commit is contained in:
parent
91b908ad50
commit
573ed1e88c
1 changed files with 26 additions and 33 deletions
|
@ -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,7 +95,8 @@ function ChannelsFollowingDiscover(props: Props) {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Page>
|
<Page>
|
||||||
{rowDataWithGenericOptions.map(({ title, link, help, options = {} }) => (
|
{!SIMPLE_SITE &&
|
||||||
|
rowDataWithGenericOptions.map(({ title, link, help, options = {} }) => (
|
||||||
<div key={title} className="claim-grid__wrapper">
|
<div key={title} className="claim-grid__wrapper">
|
||||||
<h1 className="section__actions">
|
<h1 className="section__actions">
|
||||||
{link ? (
|
{link ? (
|
||||||
|
@ -125,9 +116,11 @@ function ChannelsFollowingDiscover(props: Props) {
|
||||||
<ClaimTilesDiscover {...options} />
|
<ClaimTilesDiscover {...options} />
|
||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
|
{!SIMPLE_SITE && (
|
||||||
<h1 id={MORE_CHANNELS_ANCHOR} className="claim-grid__title">
|
<h1 id={MORE_CHANNELS_ANCHOR} className="claim-grid__title">
|
||||||
{__('More Channels')}
|
{__('More Channels')}
|
||||||
</h1>
|
</h1>
|
||||||
|
)}
|
||||||
<ClaimListDiscover
|
<ClaimListDiscover
|
||||||
defaultOrderBy={CS.ORDER_BY_TRENDING}
|
defaultOrderBy={CS.ORDER_BY_TRENDING}
|
||||||
defaultFreshness={CS.FRESH_ALL}
|
defaultFreshness={CS.FRESH_ALL}
|
||||||
|
|
Loading…
Reference in a new issue