From 394399a39481561ab1afac42d4baf6a702a196ee Mon Sep 17 00:00:00 2001 From: GauthierWebDev Date: Sun, 20 Apr 2025 16:33:30 +0200 Subject: [PATCH] refactor: Update variable names in Navigation and TableOfContents --- app/layouts/LayoutDefault.tsx | 4 ++-- app/package.json | 2 +- app/pages/+config.ts | 4 ++-- app/partials/Navigation.tsx | 26 +++++++++++++++----------- app/partials/TableOfContents.tsx | 22 +++++++++------------- 5 files changed, 29 insertions(+), 29 deletions(-) diff --git a/app/layouts/LayoutDefault.tsx b/app/layouts/LayoutDefault.tsx index 5aac222..bc0ef30 100755 --- a/app/layouts/LayoutDefault.tsx +++ b/app/layouts/LayoutDefault.tsx @@ -15,14 +15,14 @@ type DefaultLayoutProps = { }; export default function DefaultLayout(props: DefaultLayoutProps) { - const { urlPathname } = usePageContext(); + const pageContext = usePageContext(); return ( <>
- {urlPathname === "/" && } + {pageContext.urlPathname === "/" && }