From d6343f9d6ddfe70955040823e42457ecd59337b2 Mon Sep 17 00:00:00 2001 From: Theo Sanderson Date: Tue, 20 Aug 2024 23:05:31 +0100 Subject: [PATCH] update --- website/src/components/Navigation/DocsMenu.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/website/src/components/Navigation/DocsMenu.tsx b/website/src/components/Navigation/DocsMenu.tsx index 5dc2e240b..11597f9c0 100644 --- a/website/src/components/Navigation/DocsMenu.tsx +++ b/website/src/components/Navigation/DocsMenu.tsx @@ -8,12 +8,12 @@ import MenuIcon from '~icons/material-symbols/menu'; type Page = MDXInstance>; interface DocsMenuProps { - docsPages: MDXInstance>[]; + docsPages: Page[]; currentPageUrl: string; title: string; } -const groupPagesByDirectory = (pages: Page[]): Record => { +const groupPagesByDirectory = (pages: Page[]): { groupedPages: Record, indexPages: Record } => { const groupedPages: Record = {}; const indexPages: Record = {}; @@ -89,7 +89,7 @@ const DocsMenu: React.FC = ({ docsPages, currentPageUrl, title }) )}