From 2f7c9da9ab83dfb543721d7749416a8e3b187c63 Mon Sep 17 00:00:00 2001 From: Tabatha Zeitke Date: Wed, 27 Jul 2022 14:03:33 -0700 Subject: [PATCH] feat: add conditional pagination - only paginate the tiles when there is no search or category param --- src/pages/index.jsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/pages/index.jsx b/src/pages/index.jsx index 10cc65ab..4b2b0c29 100644 --- a/src/pages/index.jsx +++ b/src/pages/index.jsx @@ -354,7 +354,15 @@ const QuickstartsPage = ({ data, location }) => { `} > {Boolean(search) && } - + + {/* Add pagination grid if no search term or category selected */} + {Boolean(search) && Boolean(!category) ? ( + filteredQuickstarts.map((pack) => ( + + )) + ) : ( + + )}