Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs] Use React 18 in Codesandbox and Stackblitz demos #15780

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions docs/pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ ponyfillGlobal.muiDocConfig = {
csbGetVersions: (versions, { muiCommitRef }) => {
return {
...versions,
react: '^18.0.0',
'react-dom': '^18.0.0',
'@mui/x-data-grid': getMuiPackageVersion('x-data-grid', muiCommitRef),
'@mui/x-data-grid-pro': getMuiPackageVersion('x-data-grid-pro', muiCommitRef),
'@mui/x-data-grid-premium': getMuiPackageVersion('x-data-grid-premium', muiCommitRef),
Expand Down Expand Up @@ -315,6 +317,11 @@ function AppWrapper(props) {
))}
<meta name="mui:productId" content={productId} />
<meta name="mui:productCategoryId" content={productCategoryId} />
<style>{`
button[data-ga-event-action="stackblitz"] {
display: none;
}
`}</style>
Copy link
Member Author

Choose a reason for hiding this comment

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

Stackblitz demos do not work: https://stackblitz.com/edit/react-ajjlj7?file=Demo.tsx

We can hide the Stackblitz buttons if we want to proceed with it.

Copy link
Member Author

Choose a reason for hiding this comment

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

A similar issue was reported in stackblitz/core#3194

</NextHead>
<DocsProvider
config={config}
Expand Down
Loading