Skip to content

Commit 2b3191f

Browse files
committed
lint fix
1 parent d4ace32 commit 2b3191f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

packages/docs-md/assets/TryItNow/index.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
} from "@codesandbox/sandpack-react";
99
import { useAtomValue } from "jotai";
1010

11+
import { CodeEditor } from "./CodeEditor/index.tsx";
1112
import { dependenciesAtom, lastEditorValueAtom } from "./state/index.ts";
1213
import { styles } from "./styles.ts";
1314

@@ -33,11 +34,15 @@ type TryItNowProps = {
3334
_enableUnsafeAutoImport?: boolean;
3435
};
3536

36-
const TryItNowContents = () => {
37+
const TryItNowContents = ({
38+
_enableUnsafeAutoImport,
39+
}: {
40+
_enableUnsafeAutoImport?: boolean;
41+
}) => {
3742
const error = useErrorMessage();
3843
return (
3944
<SandpackLayout>
40-
<SandpackCodeEditor />
45+
{_enableUnsafeAutoImport ? <CodeEditor /> : <SandpackCodeEditor />}
4146
{!error && (
4247
<SandpackConsole
4348
resetOnPreviewRestart

0 commit comments

Comments
 (0)