Article server based
Required Sync changes!
This commit is contained in:
1 parent
6acb7ba64d
commit
be84058aba
18 files changed
+475
-114
No files matched your search
@@ -0,0 +1,27 @@
|
||||
const React = require('react')
|
||||
const Paginator = require('./Paginator')
|
||||
const Article = require('./Article')
|
||||
|
||||
const ArticleList = ({articles, nextPage, prevPage}) => (
|
||||
<div className="content content_thin">
|
||||
{!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}
|
||||
/>
|
||||
))}
|
||||
|
||||
{!nextPage ? null : (
|
||||
<Paginator url={`/articles/${nextPage}`} type="bottom"/>
|
||||
)}
|
||||
</div>
|
||||
)
|
||||
|
||||
module.exports = ArticleList
|
||||
Reference in new issue
Block a user