From 83ae3f5509c7df8c846210cc3bb2efaf52188b10 Mon Sep 17 00:00:00 2001 From: scar055 Date: Wed, 5 Jun 2024 11:59:47 +0200 Subject: [PATCH] chore: the breadcrumb separator moved outside link --- .../ui/src/components/Breadcrumb/index.tsx | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/ui/src/components/Breadcrumb/index.tsx b/packages/ui/src/components/Breadcrumb/index.tsx index 075227ddb..0338d5eea 100644 --- a/packages/ui/src/components/Breadcrumb/index.tsx +++ b/packages/ui/src/components/Breadcrumb/index.tsx @@ -63,6 +63,11 @@ export const Breadcrumbs = ({ links, Link = UtrechtLink, backLink, breakpoint = links.map(({ href, label, current }: any, index: number) => label ? ( + {links.length === 1 && label?.toLowerCase() !== 'home' && ( + + + + )} - {links.length === 1 && label?.toLowerCase() !== 'home' && ( - - - - )} {label} - {index !== links.length - 1 && ( - - - - )} + {index !== links.length - 1 && ( + + + + )} ) : null, )}