From 0ba0d74ea7c34fb6a1068bb0891c6a02e12ddad4 Mon Sep 17 00:00:00 2001 From: Roman Timashev Date: Tue, 18 Feb 2020 17:10:53 +0300 Subject: [PATCH] pager uses next link --- src/components/Pager/index.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/Pager/index.tsx b/src/components/Pager/index.tsx index 561d817d..3a53e965 100644 --- a/src/components/Pager/index.tsx +++ b/src/components/Pager/index.tsx @@ -1,3 +1,5 @@ +import Link from 'next/link' + const text = ['↑', '↓'] const linkText = ['Предыдущая страница', 'Следующая страница'] @@ -29,6 +31,8 @@ export const Pager: React.FC = ({ url, position }) => ( {text[i(position)]} - {linkText[i(position)]} + + {linkText[i(position)]} + )