We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9884c3e commit 08222adCopy full SHA for 08222ad
packages/ui-components/Common/Breadcrumbs/index.tsx
@@ -51,9 +51,13 @@ const Breadcrumbs: FC<BreadcrumbsProps> = ({
51
hideSeparator={isLastItem}
52
position={position + +!hideHome}
53
>
54
- <BreadcrumbLink as={as} href={link.href} active={isLastItem}>
55
- {link.label}
56
- </BreadcrumbLink>
+ {link.href ? (
+ <BreadcrumbLink as={as} href={link.href} active={isLastItem}>
+ {link.label}
57
+ </BreadcrumbLink>
58
+ ) : (
59
+ <span className="opacity-70">{link.label}</span>
60
+ )}
61
</BreadcrumbItem>
62
);
63
}),
0 commit comments