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 Paginator from './Paginator'
|
||||||
import { ArticleCard } from './ArticleCard'
|
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>
|
<div>
|
||||||
<style jsx>{`
|
<style jsx>{`
|
||||||
.body {
|
.body {
|
||||||
Reference in new issue
Block a user