ArticleCardList moved to tsx

This commit is contained in:
tmshv committed 2020-02-14 19:36:07 +03:00
1 parent c46fd4ddc5
commit e6610fdabb
1 file changed
+7 -2
@@ -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<IArticleCardListProps> = ({ articles, nextPage, prevPage }) => (
<div>
<style jsx>{`
.body {