From f60ce01fec78b66f84b99f593a7743595f6ec76b Mon Sep 17 00:00:00 2001 From: WithoutPants <53250216+WithoutPants@users.noreply.github.com> Date: Thu, 18 Jun 2020 11:10:00 +1000 Subject: [PATCH] Render pagination at top as well (#614) --- ui/v2.5/src/components/Changelog/versions/v030.tsx | 1 + ui/v2.5/src/hooks/ListHook.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/ui/v2.5/src/components/Changelog/versions/v030.tsx b/ui/v2.5/src/components/Changelog/versions/v030.tsx index b41a1bd06..4077a3a9a 100644 --- a/ui/v2.5/src/components/Changelog/versions/v030.tsx +++ b/ui/v2.5/src/components/Changelog/versions/v030.tsx @@ -6,6 +6,7 @@ const markup = ` * Add support for parent/child studios. ### 🎨 Improvements +* Show pagination at top as well as bottom of the page. * Add split xpath post-processing action. * Improved the layout of the scene page. * Show rating as stars in scene page. diff --git a/ui/v2.5/src/hooks/ListHook.tsx b/ui/v2.5/src/hooks/ListHook.tsx index 45ce19383..16f1cad34 100644 --- a/ui/v2.5/src/hooks/ListHook.tsx +++ b/ui/v2.5/src/hooks/ListHook.tsx @@ -412,6 +412,7 @@ const useList = ( : undefined} {(result.loading || !forageInitialised) && } {result.error &&

{result.error.message}

} + {maybeRenderPagination()} {maybeRenderContent()} {maybeRenderPaginationIndex()} {maybeRenderPagination()}