From f3809d88a7a8798e81379379effcf4202f787ec5 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Thu, 24 Mar 2022 12:52:02 -0700 Subject: [PATCH] Remove sharedBy from unused page --- .../web/components/templates/ArticleHighlights.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/web/components/templates/ArticleHighlights.tsx b/packages/web/components/templates/ArticleHighlights.tsx index e5ad9768c..ad79c7876 100644 --- a/packages/web/components/templates/ArticleHighlights.tsx +++ b/packages/web/components/templates/ArticleHighlights.tsx @@ -69,10 +69,10 @@ function LoadedContent(props: LoadedContentProps): JSX.Element { return props.publicArticle.highlights.length - 1 }, [props.publicArticle.highlights]) - const sharedBy = useMemo(() => { - if (moreHighlightsCount < 1) return undefined - return props.publicArticle.highlights[0].user - }, [moreHighlightsCount, props.publicArticle.highlights]) + // const sharedBy = useMemo(() => { + // if (moreHighlightsCount < 1) return undefined + // return props.publicArticle.highlights[0].user + // }, [moreHighlightsCount, props.publicArticle.highlights]) const articleSite = useMemo(() => { try { @@ -124,7 +124,7 @@ function LoadedContent(props: LoadedContentProps): JSX.Element { site={articleSite} /> - {!showAllHighlights && moreHighlightsCount > 0 && sharedBy && ( + {!showAllHighlights && moreHighlightsCount > 0 && ( )}