Skip to content

Conversation

@AdamBCo
Copy link
Contributor

@AdamBCo AdamBCo commented Jun 13, 2024

WHY are these changes introduced?

Fixes #12251

This PR fixes an issue where clicking edit in CodeSandbox on any component example results in a broken CodeSandbox example where the component is exported as Example, as opposed to it's proper name.

In the images below you will see that clicking edit in Codesandbox for a CardWithSection in production results in a export default Example line at the bottom.

Screenshot 2024-06-13 at 3 53 46 PM

WHAT is this pull request doing?

This PR fixes the issue by finding the proper name in the code example

🎩 checklist

@AdamBCo AdamBCo added the Bug Something is broken and not working as intended in the system. label Jun 13, 2024
@AdamBCo AdamBCo self-assigned this Jun 13, 2024
@AdamBCo AdamBCo added the 🤖Skip Changelog Causes CI to ignore changelog update check. label Jun 13, 2024
@AdamBCo AdamBCo requested review from a team June 13, 2024 23:41
Copy link
Member

@chloerice chloerice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for contributing @AdamBCo! 🚀

@AdamBCo
Copy link
Contributor Author

AdamBCo commented Jun 14, 2024

/shipit

@AdamBCo AdamBCo merged commit 902db58 into main Jun 14, 2024
@AdamBCo AdamBCo deleted the adamcooper/fix-code-for-codesandbox-button branch June 14, 2024 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something is broken and not working as intended in the system. 🤖Skip Changelog Causes CI to ignore changelog update check.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Example code generated by Codesandbox button is broken.

2 participants