update homepage

This commit is contained in:
Jeremy Kauffman 2020-05-31 09:45:44 -04:00
parent 4fbc4458e7
commit 2c61f1dd2b

View file

@ -113,7 +113,7 @@ export default function getHomePageRowData(
if (followedTags.length) { if (followedTags.length) {
followedTags.forEach((tag: Tag) => { followedTags.forEach((tag: Tag) => {
individualTagDataItems.push({ individualTagDataItems.push({
title: __(`Trending for `)+`#${toCapitalCase(tag.name)}`, title: __(`Trending for `) + `#${toCapitalCase(tag.name)}`,
link: `/$/${PAGES.DISCOVER}?t=${tag.name}`, link: `/$/${PAGES.DISCOVER}?t=${tag.name}`,
options: { options: {
pageSize: 4, pageSize: 4,
@ -167,6 +167,16 @@ export default function getHomePageRowData(
}, },
}; };
const PROTESTS_2020 = {
title: '#2020protests',
link: `/$/${PAGES.DISCOVER}?${CS.TAGS_KEY}=2020protests&${CS.CLAIM_TYPE}=${CS.CLAIM_STREAM}`,
options: {
claimType: ['stream'],
tags: ['2020protests'],
pageSize: 4,
},
};
const TOP_CHANNELS = { const TOP_CHANNELS = {
title: __('Top Channels On LBRY'), title: __('Top Channels On LBRY'),
link: `/$/${PAGES.DISCOVER}?claim_type=channel&${CS.ORDER_BY_KEY}=${CS.ORDER_BY_TOP}&${CS.FRESH_KEY}=${CS.FRESH_ALL}`, link: `/$/${PAGES.DISCOVER}?claim_type=channel&${CS.ORDER_BY_KEY}=${CS.ORDER_BY_TOP}&${CS.FRESH_KEY}=${CS.FRESH_ALL}`,
@ -239,6 +249,7 @@ export default function getHomePageRowData(
rowData.push(TV_PAID_BETA_ROW); rowData.push(TV_PAID_BETA_ROW);
} }
rowData.push(TOP_CONTENT_TODAY); rowData.push(TOP_CONTENT_TODAY);
rowData.push(PROTESTS_2020);
rowData.push(TRENDING_ON_LBRY); rowData.push(TRENDING_ON_LBRY);
if (!showPersonalizedChannels) rowData.push(TOP_CHANNELS); if (!showPersonalizedChannels) rowData.push(TOP_CHANNELS);
if (!authenticated) { if (!authenticated) {