pager uses next link
This commit is contained in:
1 parent
406c660f41
commit
0ba0d74ea7
1 file changed
+5
-1
@@ -1,3 +1,5 @@
|
||||
import Link from 'next/link'
|
||||
|
||||
const text = ['↑', '↓']
|
||||
const linkText = ['Предыдущая страница', 'Следующая страница']
|
||||
|
||||
@@ -29,6 +31,8 @@ export const Pager: React.FC<PagerProps> = ({ url, position }) => (
|
||||
{text[i(position)]}
|
||||
</span>
|
||||
|
||||
<a href={url}>{linkText[i(position)]}</a>
|
||||
<Link href={url}>
|
||||
<a>{linkText[i(position)]}</a>
|
||||
</Link>
|
||||
</div>
|
||||
)
|
||||
Reference in new issue
Block a user