ArticleCardList moved to tsx
This commit is contained in:
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 {
|
||||
Reference in new issue
Block a user