dan
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
0 deletions
-
beta/src/components/MDX/Sandpack/CustomPreset.tsx
|
|
@ -20,6 +20,9 @@ import {Preview} from './Preview'; |
|
|
|
import {CustomTheme} from './Themes'; |
|
|
|
import {useSandpackLint} from './useSandpackLint'; |
|
|
|
|
|
|
|
// Workaround for https://github.com/reactjs/reactjs.org/issues/4686#issuecomment-1137402613.
|
|
|
|
const emptyArray = []; |
|
|
|
|
|
|
|
export function CustomPreset({ |
|
|
|
isSingleFile, |
|
|
|
showDevTools, |
|
|
@ -65,6 +68,7 @@ export function CustomPreset({ |
|
|
|
showTabs={false} |
|
|
|
showRunButton={false} |
|
|
|
extensions={lintExtensions} |
|
|
|
extensionsKeymap={emptyArray} |
|
|
|
/> |
|
|
|
<Preview |
|
|
|
className="order-last xl:order-2" |
|
|
|