From 86c7c63c6c80c0885f188954fdec1b4e7105c8a6 Mon Sep 17 00:00:00 2001 From: Roman Timashev Date: Sat, 22 Feb 2020 02:43:02 +0300 Subject: [PATCH] article grid featured simplified --- src/components/ArticleGrid/index.tsx | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/components/ArticleGrid/index.tsx b/src/components/ArticleGrid/index.tsx index 8e96edaa..b165ebdc 100644 --- a/src/components/ArticleGrid/index.tsx +++ b/src/components/ArticleGrid/index.tsx @@ -24,15 +24,8 @@ export const ArticleGrid: React.FC = ({ articles, nextPage, pr const layout: CardLayout = article.featured ? 'featured' : 'simple' const srcSet = article.preview.set.map(({ url, density }) => `${url} ${density}x`).join(' ') - const content = article.featured + const content = !article.featured ? ( -

- {article.title} -

- ) : ( @@ -42,6 +35,8 @@ export const ArticleGrid: React.FC = ({ articles, nextPage, pr marginTop: 'var(--size-m)', }}>{article.date} + ) : ( + article.title ) return (