fix links on homepage

This commit is contained in:
Sean Yesmunt 2020-03-09 14:33:58 -04:00
parent f7ab185bfe
commit 41c9ba4869

View file

@ -1,6 +1,7 @@
// @flow // @flow
import * as ICONS from 'constants/icons'; import * as ICONS from 'constants/icons';
import * as PAGES from 'constants/pages'; import * as PAGES from 'constants/pages';
import * as CS from 'constants/claim_search';
import React from 'react'; import React from 'react';
import moment from 'moment'; import moment from 'moment';
import Page from 'component/page'; import Page from 'component/page';
@ -113,7 +114,7 @@ function HomePage(props: Props) {
rowData.push( rowData.push(
{ {
title: 'Top Content Last Week', title: 'Top Content Last Week',
link: `/$/${PAGES.DISCOVER}?&type=top&time=week`, link: `/$/${PAGES.DISCOVER}?${CS.ORDER_BY_KEY}=${CS.ORDER_BY_TOP}&${CS.FRESH_KEY}=${CS.FRESH_WEEK}`,
options: { options: {
orderBy: ['effective_amount'], orderBy: ['effective_amount'],
pageSize: 4, pageSize: 4,
@ -128,7 +129,9 @@ function HomePage(props: Props) {
}, },
{ {
title: '#HomePageCageMatch', title: '#HomePageCageMatch',
link: `/$/${PAGES.DISCOVER}?t=homepagecagematch&type=top&time=all`, link: `/$/${PAGES.DISCOVER}?t=homepagecagematch&${CS.ORDER_BY_KEY}=${CS.ORDER_BY_TOP}&${CS.FRESH_KEY}=${
CS.FRESH_ALL
}`,
help: ( help: (
<div className="claim-grid__help"> <div className="claim-grid__help">
<Icon <Icon
@ -156,7 +159,7 @@ function HomePage(props: Props) {
if (!showAuthenticatedRows) { if (!showAuthenticatedRows) {
rowData.push({ rowData.push({
title: '#lbry', title: '#lbry',
link: `/$/${PAGES.DISCOVER}?t=lbry&type=top&time=all`, link: `/$/${PAGES.DISCOVER}?t=lbry&${CS.ORDER_BY_KEY}=${CS.ORDER_BY_TOP}&${CS.FRESH_KEY}=${CS.FRESH_ALL}`,
options: { options: {
tags: ['lbry'], tags: ['lbry'],
orderBy: ['effective_amount'], orderBy: ['effective_amount'],