From 3826ec4a787c50f5c7fca76e5830311e5e61c9e6 Mon Sep 17 00:00:00 2001 From: fantasticit Date: Fri, 18 Mar 2022 17:18:13 +0800 Subject: [PATCH] fix: improve pagination --- packages/client/src/pages/find/index.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/client/src/pages/find/index.tsx b/packages/client/src/pages/find/index.tsx index bfa6c9c3..74cc274c 100644 --- a/packages/client/src/pages/find/index.tsx +++ b/packages/client/src/pages/find/index.tsx @@ -18,6 +18,7 @@ const grid = { }; const { Title } = Typography; +const PAGESIZE = 12; const Page: NextPage = () => { const { data, loading, error, setPage } = useAllPublicWikis(); @@ -59,9 +60,11 @@ const Page: NextPage = () => { )} emptyContent={} /> -
- -
+ {data.total > PAGESIZE && ( +
+ +
+ )} )} />