Skip to content

Example code generated by Codesandbox button is broken. #12251

@AdamBCo

Description

@AdamBCo

Summary

Click "Edit in CodeSandbox" on any component results in broken code on CodeSandbox. For example clicking "edit in CodeSandbox" on a CardWithSection results in the following:

Screenshot 2024-06-13 at 3 53 46 PM

Expected behavior

The example code in CodeSandbox should have the proper component name in the export default line at the bottom.

Actual behavior

The example code in CodeSandbox is broken due to an incorrect name in the export default line at the bottom.

Steps to reproduce

Link to sandbox

  1. Click "Edit in CodeSandbox" on any component example
  2. View that the CodeSandbox example is unable to run due to the export default Example line at the bottom

Are you using React components?

No

Polaris version number

7.13.0

Browser

Chrome: 125.0.6422.142

Device

macOS 14.5

Metadata

Metadata

Assignees

Labels

BugSomething is broken and not working as intended in the system.untriaged

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions