Skip to content

Commit 614899a

Browse files
make sure last item is always displayed as active
1 parent a834501 commit 614899a

File tree

1 file changed

+6
-2
lines changed
  • packages/ui-components/Common/Breadcrumbs

1 file changed

+6
-2
lines changed

Diff for: packages/ui-components/Common/Breadcrumbs/index.tsx

+6-2
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,12 @@ const Breadcrumbs: FC<BreadcrumbsProps> = ({
5151
hideSeparator={isLastItem}
5252
position={position + +!hideHome}
5353
>
54-
{link.href ? (
55-
<BreadcrumbLink as={as} href={link.href} active={isLastItem}>
54+
{link.href || isLastItem ? (
55+
<BreadcrumbLink
56+
as={as}
57+
href={link.href || undefined}
58+
active={isLastItem}
59+
>
5660
{link.label}
5761
</BreadcrumbLink>
5862
) : (

0 commit comments

Comments
 (0)