Skip to content

Commit c7c0c47

Browse files
authored
Add missing displayName to PageHeader.TitleArea and PageHeader.ParentLink (#4736)
* Add missing displayName to PageHeader.TitleArea * Add missing displayName to PageHeader.ParentLink
1 parent 6db8b2f commit c7c0c47

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/react/src/PageHeader/PageHeader.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ const ParentLink = React.forwardRef<HTMLAnchorElement, ParentLinkProps>(
238238
)
239239
},
240240
) as PolymorphicForwardRefComponent<'a', ParentLinkProps>
241+
ParentLink.displayName = 'ParentLink'
241242

242243
// ContextBar
243244
// Generic slot for any component above the title region. Use it for custom breadcrumbs and other navigation elements instead of ParentLink.
@@ -337,6 +338,7 @@ const TitleArea = React.forwardRef<HTMLDivElement, React.PropsWithChildren<Title
337338
)
338339
},
339340
) as PolymorphicForwardRefComponent<'div', TitleAreaProps>
341+
TitleArea.displayName = 'TitleArea'
340342

341343
// PageHeader.LeadingAction and PageHeader.TrailingAction should only be visible on regular viewports.
342344
// So they come as hidden on narrow viewports by default and their visibility can be managed by their `hidden` prop.

0 commit comments

Comments
 (0)