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,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
|
||||
Reference in new issue
Block a user