aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/hooks/index.ts
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2023-12-12 18:50:03 +0100
committerArmand Philippot <git@armandphilippot.com>2023-12-12 18:50:03 +0100
commit85c4c42bd601270d7be0f34a0767a34bb85e29bb (patch)
tree16a07a89cf209139672592fd6988f0c028acb7e9 /src/utils/hooks/index.ts
parent93f87c10783e3d76f1dec667779aedffcae33a39 (diff)
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
Diffstat (limited to 'src/utils/hooks/index.ts')
-rw-r--r--src/utils/hooks/index.ts2
1 files changed, 1 insertions, 1 deletions
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';