Skip to content

fix(UIShell): refactor displayName check#14097

Merged
kodiakhq[bot] merged 2 commits into
carbon-design-system:mainfrom
tw15egan:ui-shell-fix
Jun 28, 2023
Merged

fix(UIShell): refactor displayName check#14097
kodiakhq[bot] merged 2 commits into
carbon-design-system:mainfrom
tw15egan:ui-shell-fix

Conversation

@tw15egan

Copy link
Copy Markdown
Contributor

Closes #14096

Uses consistent displayName checking that is found in other components. The previous usage was causing errors in tests and in the console.

Changelog

Changed

  • children.type?.displayName === 'Switcher' instead of children.type.__docgenInfo.displayName === 'Switcher'

Testing / Reviewing

Ensure the Header Base w/ Actions and Switcher story still closes the switcher when clicking outside the switcher

@netlify

netlify Bot commented Jun 27, 2023

Copy link
Copy Markdown

Deploy Preview for carbon-components-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 00045a4
🔍 Latest deploy log https://app.netlify.com/sites/carbon-components-react/deploys/649c28871cf8780007bf4603
😎 Deploy Preview https://deploy-preview-14097--carbon-components-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@netlify

netlify Bot commented Jun 27, 2023

Copy link
Copy Markdown

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit 00045a4
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/649c2887a4c837000829d8b6
😎 Deploy Preview https://deploy-preview-14097--carbon-elements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@kodiakhq kodiakhq Bot merged commit 0a317bf into carbon-design-system:main Jun 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Question]: Complaining about __docgenInfo being present in HeaderPanel

3 participants