From ca89fd158d245bdfd437e4be77243161e237404e Mon Sep 17 00:00:00 2001 From: James Grugett Date: Thu, 3 Feb 2022 19:00:17 -0600 Subject: [PATCH] Make home communities look better on mobile. Add Covid & AI. --- web/components/tags-list.tsx | 5 +++-- web/pages/home.tsx | 13 ++++--------- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/web/components/tags-list.tsx b/web/components/tags-list.tsx index 80276897..33b54e96 100644 --- a/web/components/tags-list.tsx +++ b/web/components/tags-list.tsx @@ -63,14 +63,15 @@ export function FoldTag(props: { fold: { slug: string; name: string } }) { export function FoldTagList(props: { folds: { slug: string; name: string }[] + noLabel?: boolean className?: string }) { - const { folds, className } = props + const { folds, noLabel, className } = props return ( {folds.length > 0 && ( <> -
Communities
+ {!noLabel &&
Communities
} {folds.map((fold) => ( ))} diff --git a/web/pages/home.tsx b/web/pages/home.tsx index cea7c0a7..2eee39d3 100644 --- a/web/pages/home.tsx +++ b/web/pages/home.tsx @@ -112,15 +112,6 @@ const Home = (props: { contracts: Contract[]; folds: Fold[] }) => { ) : [] - console.log({ - followedFoldIds, - followedFolds, - yourBetContracts, - feedContracts, - feedBets, - feedComments, - }) - if (user === null) { Router.replace('/') return <> @@ -132,13 +123,17 @@ const Home = (props: { contracts: Contract[]; folds: Fold[] }) => { +
Communities