From 7c39a3342bd551ff2b04e0ac0cd9084dd50647d2 Mon Sep 17 00:00:00 2001 From: Valerio Ageno Date: Thu, 15 Aug 2024 21:12:02 +0200 Subject: [PATCH] fix: documentation type checking --- .../src/components/breadcrumbs/breadcrumbs.tsx | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/apps/documentation/src/components/breadcrumbs/breadcrumbs.tsx b/apps/documentation/src/components/breadcrumbs/breadcrumbs.tsx index 847942a5..1d47d126 100644 --- a/apps/documentation/src/components/breadcrumbs/breadcrumbs.tsx +++ b/apps/documentation/src/components/breadcrumbs/breadcrumbs.tsx @@ -38,14 +38,16 @@ export function BreadcrumbElement({ href, label, }: BreadcrumbElementProps): JSX.Element { + if (href) { + return ( + + ) + } + return ( - )