Skip to content

Commit 981421b

Browse files
update
1 parent a78e6b1 commit 981421b

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

ui/react-example/src/App.tsx

+10-2
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,17 @@ function App() {
124124
</>
125125
)}
126126
{type === "example" && (
127-
<ExampleContent className="border-color h-[calc(100vh-60px-32px)] w-full overflow-hidden rounded-md border" />
127+
<>
128+
<ExampleContent className="border-color h-[calc(100vh-60px-32px)] w-full overflow-hidden rounded-md border" />
129+
<DevTool />
130+
</>
131+
)}
132+
{type === "try" && (
133+
<>
134+
<PlayGround />
135+
<DevTool />
136+
</>
128137
)}
129-
{type === "try" && <PlayGround />}
130138
</AppShell.Main>
131139
</AppShell>
132140
);

ui/react-example/src/components/DevTool.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ async function init() {
1919
if (typeof getFunc() === "function") {
2020
getFunc()(src);
2121
} else {
22-
await loadScript(`${src}/bundle/iframe.js`);
22+
await loadScript(`${src}/bundle/hook.js`);
2323
await init();
2424
}
2525
}

0 commit comments

Comments
 (0)