Skip to content

Commit 82a4e57

Browse files
make sure last item is always displayed as active
1 parent 0e3276b commit 82a4e57

File tree

1 file changed

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

1 file changed

+6
-2
lines changed

packages/ui-components/Common/Breadcrumbs/index.tsx

Lines changed: 6 additions & 2 deletions
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)