diff --git a/packages/client/src/data/wiki.ts b/packages/client/src/data/wiki.ts index e021b2fe..4954d8e2 100644 --- a/packages/client/src/data/wiki.ts +++ b/packages/client/src/data/wiki.ts @@ -152,6 +152,7 @@ export const useAllPublicWikis = () => { data, loading: isLoading, error, + page, setPage, }; }; diff --git a/packages/client/src/pages/find/index.tsx b/packages/client/src/pages/find/index.tsx index 15662579..73ec3ef9 100644 --- a/packages/client/src/pages/find/index.tsx +++ b/packages/client/src/pages/find/index.tsx @@ -23,7 +23,7 @@ const { Title } = Typography; const PAGESIZE = 12; const Page: NextPage = () => { - const { data, loading, error, setPage } = useAllPublicWikis(); + const { data, loading, error, page, setPage } = useAllPublicWikis(); return ( @@ -62,7 +62,7 @@ const Page: NextPage = () => { /> {data.total > PAGESIZE && (
- +
)}