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/components/templates/page/page.stories.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/components/templates/page/page.stories.tsx') diff --git a/src/components/templates/page/page.stories.tsx b/src/components/templates/page/page.stories.tsx index 8b1616b..3f03b44 100644 --- a/src/components/templates/page/page.stories.tsx +++ b/src/components/templates/page/page.stories.tsx @@ -173,8 +173,8 @@ HeaderBody.args = { export const BreadcrumbsHeaderBody = Template.bind({}); BreadcrumbsHeaderBody.args = { breadcrumbs: [ - { id: 'home', name: 'Home', url: '#home' }, - { id: 'blog', name: 'Blog', url: '#blog' }, + { id: 'home', label: 'Home', slug: '#home' }, + { id: 'blog', label: 'Blog', slug: '#blog' }, ], children: ( <> -- cgit v1.2.3