ArticleList removed: use ArticleGrid instead
This commit is contained in:
1 parent
a01888f155
commit
1e44a22c0c
1 file changed
-28
@@ -1,28 +0,0 @@
|
|||||||
const React = require('react')
|
|
||||||
const Paginator = require('./Paginator')
|
|
||||||
const Article = require('./Article')
|
|
||||||
|
|
||||||
const ArticleList = ({articles, nextPage, prevPage}) => (
|
|
||||||
<div>
|
|
||||||
{!prevPage ? null : (
|
|
||||||
<Paginator url={`/articles/${prevPage}`} type="top"/>
|
|
||||||
)}
|
|
||||||
|
|
||||||
{articles.map(article => (
|
|
||||||
<Article
|
|
||||||
key={article.url}
|
|
||||||
url={article.url}
|
|
||||||
title={article.title}
|
|
||||||
date={article.date}
|
|
||||||
data={article.post}
|
|
||||||
shareable={false}
|
|
||||||
/>
|
|
||||||
))}
|
|
||||||
|
|
||||||
{!nextPage ? null : (
|
|
||||||
<Paginator url={`/articles/${nextPage}`} type="bottom"/>
|
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
|
|
||||||
module.exports = ArticleList
|
|
||||||
Reference in new issue
Block a user