From 85c4c42bd601270d7be0f34a0767a34bb85e29bb Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Tue, 12 Dec 2023 18:50:03 +0100 Subject: refactor(hooks): rewrite useBreadcrumbs hook * use next/router to get the slug instead of using props * handle cases where the current page title is not provided * update JSON-LD schema to match the example in documentation * add tests --- src/utils/hooks/use-breadcrumbs/index.ts | 1 + 1 file changed, 1 insertion(+) create mode 100644 src/utils/hooks/use-breadcrumbs/index.ts (limited to 'src/utils/hooks/use-breadcrumbs/index.ts') diff --git a/src/utils/hooks/use-breadcrumbs/index.ts b/src/utils/hooks/use-breadcrumbs/index.ts new file mode 100644 index 0000000..87e5d79 --- /dev/null +++ b/src/utils/hooks/use-breadcrumbs/index.ts @@ -0,0 +1 @@ +export * from './use-breadcrumbs'; -- cgit v1.2.3