Skip to content

Commit

Permalink
feat(platform): add correct className for Link
Browse files Browse the repository at this point in the history
  • Loading branch information
xiejay97 committed Feb 21, 2023
1 parent ed794b0 commit 1dfda85
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ export function AppRouteHeaderBreadcrumb(props: AppRouteHeaderBreadcrumbProps):
</Link>
) : React.isValidElement(item.title) ? (
React.cloneElement<React.HTMLAttributes<HTMLElement>>(item.title as any, {
className: getClassName(item.title.props.className, 'app-route-header__breadcrumb-item'),
className: getClassName(
item.title.props.className,
item.title.type === Link ? 'app-route-header__breadcrumb-link' : 'app-route-header__breadcrumb-item'
),
})
) : (
<div className="app-route-header__breadcrumb-item">{item.title}</div>
Expand Down

0 comments on commit 1dfda85

Please sign in to comment.