Skip to content

Commit 1dfda85

Browse files
committed
feat(platform): add correct className for Link
1 parent ed794b0 commit 1dfda85

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/platform/src/app/components/route-header/RouteHeaderBreadcrumb.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ export function AppRouteHeaderBreadcrumb(props: AppRouteHeaderBreadcrumbProps):
4444
</Link>
4545
) : React.isValidElement(item.title) ? (
4646
React.cloneElement<React.HTMLAttributes<HTMLElement>>(item.title as any, {
47-
className: getClassName(item.title.props.className, 'app-route-header__breadcrumb-item'),
47+
className: getClassName(
48+
item.title.props.className,
49+
item.title.type === Link ? 'app-route-header__breadcrumb-link' : 'app-route-header__breadcrumb-item'
50+
),
4851
})
4952
) : (
5053
<div className="app-route-header__breadcrumb-item">{item.title}</div>

0 commit comments

Comments
 (0)