From ef57443f727a16475d877f89627618ef5cec32e2 Mon Sep 17 00:00:00 2001 From: Graeme Fulton Date: Tue, 30 Jan 2024 19:03:32 +0100 Subject: [PATCH] side menu --- components/FilterCategory.js | 7 +++++-- components/toolbox/ToolboxIndexPage.jsx | 13 ++++++++----- lib/menus/chatTools.js | 2 +- lib/menus/realityTools.js | 2 +- lib/menus/uxTools.js | 8 ++++---- 5 files changed, 19 insertions(+), 13 deletions(-) diff --git a/components/FilterCategory.js b/components/FilterCategory.js index e2a820de..68148d9f 100644 --- a/components/FilterCategory.js +++ b/components/FilterCategory.js @@ -9,13 +9,16 @@ export default function FilterCategory({ paginationRoot, }) { return ( -
+
+

+ Categories +

{items?.map((item, index) => { return ( <> {item?.subItems?
-

+

{item.title}

diff --git a/components/toolbox/ToolboxIndexPage.jsx b/components/toolbox/ToolboxIndexPage.jsx index a1739624..65c36f9c 100644 --- a/components/toolbox/ToolboxIndexPage.jsx +++ b/components/toolbox/ToolboxIndexPage.jsx @@ -88,14 +88,16 @@ const ToolboxIndexPage = ({ {/* {title} */} - - + + -
+
{router.isFallback ? ( Loading… ) : ( @@ -141,9 +143,10 @@ const ToolboxIndexPage = ({ export default ToolboxIndexPage; -const Sidebar = ({ filterCategories, paginationRoot, urlRoot, slug }) => { +const Sidebar = ({ filterCategories, paginationRoot, urlRoot, slug, title }) => { return ( -
+ //
+