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/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/utils/hooks/index.ts') diff --git a/src/utils/hooks/index.ts b/src/utils/hooks/index.ts index 95cb717..c9ed01e 100644 --- a/src/utils/hooks/index.ts +++ b/src/utils/hooks/index.ts @@ -2,7 +2,7 @@ export * from './use-ackee'; export * from './use-article'; export * from './use-articles-list'; export * from './use-boolean'; -export * from './use-breadcrumb'; +export * from './use-breadcrumbs'; export * from './use-comments'; export * from './use-form'; export * from './use-github-repo-meta'; -- cgit v1.2.3