From d939b64d647dc8c24db66e556d67d2922a1d38ce Mon Sep 17 00:00:00 2001 From: Valerio Ageno Date: Wed, 6 Nov 2024 21:09:30 +0100 Subject: [PATCH] fix: documentation meta breadcrumb --- .../components/breadcrumbs/breadcrumbs.tsx | 122 +++++++++--------- 1 file changed, 64 insertions(+), 58 deletions(-) diff --git a/apps/documentation/src/components/breadcrumbs/breadcrumbs.tsx b/apps/documentation/src/components/breadcrumbs/breadcrumbs.tsx index cae73206..95aef019 100644 --- a/apps/documentation/src/components/breadcrumbs/breadcrumbs.tsx +++ b/apps/documentation/src/components/breadcrumbs/breadcrumbs.tsx @@ -4,87 +4,93 @@ import { Link, Head } from 'tuono' import { IconChevronRight, IconBolt } from '@tabler/icons-react' interface Breadcrumb { - href?: string - label: string + href?: string + label: string } interface BreadcrumbsProps { - breadcrumbs: Breadcrumb[] + breadcrumbs: Breadcrumb[] } export default function TuonoBreadcrumbs({ - breadcrumbs = [], + breadcrumbs = [], }: BreadcrumbsProps): JSX.Element { - return ( - <> - - - - } - mb="md" - mt="md" - > - - {breadcrumbs.map((br) => ( - - ))} - - - ) + + + } + mb="md" + mt="md" + > + + {breadcrumbs.map((br) => ( + + ))} + + + ) } interface BreadcrumbElementProps { - href?: string - label: string + href?: string + label: string } export function BreadcrumbElement({ - href, - label, + href, + label, }: BreadcrumbElementProps): JSX.Element { - if (href) { - return ( - - ) - } + if (href) { + return ( + + ) + } - return ( - - ) + return ( + + ) }