Skip to content

Commit 2b2e30e

Browse files
authored
Add missing displayName to PageHeader.TitleArea
1 parent 2536b49 commit 2b2e30e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/funny-dots-yawn.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@primer/react': patch
3+
---
4+
5+
PageHeader.TitleArea: Add missing displayName property

packages/react/src/PageHeader/PageHeader.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,7 @@ const TitleArea = React.forwardRef<HTMLDivElement, React.PropsWithChildren<Title
337337
)
338338
},
339339
) as PolymorphicForwardRefComponent<'div', TitleAreaProps>
340+
TitleArea.displayName = 'TitleArea'
340341

341342
// PageHeader.LeadingAction and PageHeader.TrailingAction should only be visible on regular viewports.
342343
// 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)