Article server based

Required Sync changes!
This commit is contained in:
tmshv committed 2017-05-22 04:50:34 +03:00
1 parent 6acb7ba64d
commit be84058aba
18 files changed
+475 -114

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
const React = require('react')
const text = ['↑ Предыдущая страница', '↓ Следующая страница']
const style = ['article-page-control__top', 'article-page-control__bottom']
const i = type => type === 'top'
? 0
: 1
const Paginator = ({url, type}) => (
<div className={`article-page-control ${style[i(type)]}`}>
<a href={url}>{text[i(type)]}</a>
</div>
)
module.exports = Paginator