Skip to content

Commit

Permalink
Add missing displayName to PageHeader.TitleArea and PageHeader.Parent…
Browse files Browse the repository at this point in the history
…Link (#4736)

* Add missing displayName to PageHeader.TitleArea

* Add missing displayName to PageHeader.ParentLink
  • Loading branch information
lumaxis authored Jul 19, 2024
1 parent 6db8b2f commit c7c0c47
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/react/src/PageHeader/PageHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ const ParentLink = React.forwardRef<HTMLAnchorElement, ParentLinkProps>(
)
},
) as PolymorphicForwardRefComponent<'a', ParentLinkProps>
ParentLink.displayName = 'ParentLink'

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

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

0 comments on commit c7c0c47

Please sign in to comment.