From 285475762eb2b77e459bbce77676af1c048b6118 Mon Sep 17 00:00:00 2001 From: Roman Timashev Date: Mon, 14 Oct 2019 17:23:16 +0300 Subject: [PATCH] ArticleCardList style moved to styled jsx --- src/components/ArticleCardList.jsx | 12 ++++++++++-- src/style/components/ArticleCardList.scss | 5 ----- src/style/style.scss | 1 - 3 files changed, 10 insertions(+), 8 deletions(-) delete mode 100644 src/style/components/ArticleCardList.scss diff --git a/src/components/ArticleCardList.jsx b/src/components/ArticleCardList.jsx index bb4ca866..c9f5bf24 100644 --- a/src/components/ArticleCardList.jsx +++ b/src/components/ArticleCardList.jsx @@ -3,12 +3,20 @@ import Paginator from './Paginator' import { ArticleCard } from './ArticleCard' export const ArticleCardList = ({ articles, nextPage, prevPage }) => ( -
+
+ + {!prevPage ? null : ( )} -
+
{articles.map((article, i) => (