From e6610fdabb3003adb7f456cf2a358f553dc5cad9 Mon Sep 17 00:00:00 2001 From: Roman Timashev Date: Fri, 14 Feb 2020 19:36:07 +0300 Subject: [PATCH] ArticleCardList moved to tsx --- .../{ArticleCardList.jsx => ArticleCardList.tsx} | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) rename src/components/{ArticleCardList.jsx => ArticleCardList.tsx} (82%) diff --git a/src/components/ArticleCardList.jsx b/src/components/ArticleCardList.tsx similarity index 82% rename from src/components/ArticleCardList.jsx rename to src/components/ArticleCardList.tsx index ed33db27..9ee98ae1 100644 --- a/src/components/ArticleCardList.jsx +++ b/src/components/ArticleCardList.tsx @@ -1,8 +1,13 @@ -import React from 'react' import Paginator from './Paginator' import { ArticleCard } from './ArticleCard' -export const ArticleCardList = ({ articles, nextPage, prevPage }) => ( +export interface IArticleCardListProps { + articles: any[] + nextPage: number | null + prevPage: number | null +} + +export const ArticleCardList:React.FC = ({ articles, nextPage, prevPage }) => (