From d363306235f2a48f16e488f20f73e2233ddcf281 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Wed, 29 Nov 2023 18:07:20 +0100 Subject: refactor(pages): improve Homepage * move custom homepage components that does not require props to the MDX file (links should not need to be translated here but where they are defined) * move SEO title and meta desc to MDX file * make Page component the wrapper instead of using a React fragment * fix MDX module types --- src/utils/hooks/use-breadcrumb.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/utils/hooks') diff --git a/src/utils/hooks/use-breadcrumb.ts b/src/utils/hooks/use-breadcrumb.ts index 1cd18d9..8b23ff2 100644 --- a/src/utils/hooks/use-breadcrumb.ts +++ b/src/utils/hooks/use-breadcrumb.ts @@ -16,8 +16,7 @@ const isProject = (url: string) => url.startsWith(`${ROUTES.PROJECTS}/`); const isSearch = (url: string) => url.startsWith(ROUTES.SEARCH); -const isThematic = (url: string) => - url.startsWith(`${ROUTES.THEMATICS.INDEX}/`); +const isThematic = (url: string) => url.startsWith(`${ROUTES.THEMATICS}/`); const isTopic = (url: string) => url.startsWith(`${ROUTES.TOPICS}/`); -- cgit v1.2.3