Skip to content

Commit

Permalink
Fix missed mports in the website
Browse files Browse the repository at this point in the history
  • Loading branch information
samchon committed Oct 29, 2024
1 parent 2c1ddc8 commit 11f7769
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
1 change: 0 additions & 1 deletion website/pages/docs/migrate.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import EditorMovie from "../../src/movies/editor/EditorMovie";
import { EditorComposer } from "../../src/functional/EditorComposer";
import { EDITOR_EXAMPLES } from "../../src/constants/EDITOR_EXAMPLES";

# Migration from Swagger
Expand Down
13 changes: 2 additions & 11 deletions website/pages/docs/sdk/swagger.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Tabs, Tab } from 'nextra-theme-docs'

import { EditorComposer } from "../../../src/functional/EditorComposer";
import { EDITOR_EXAMPLES } from "../../../src/constants/EDITOR_EXAMPLES";

## Outline
Expand Down Expand Up @@ -1740,16 +1739,8 @@ The 1st is publishing the `swagger.json` file in a public repo, and showing it t
{<ul>
{EDITOR_EXAMPLES.map((example) => (
<li>
<a style={{ cursor: "pointer" }}
onMouseDown={(evt) => {
if (evt.which === 3) return;
EditorComposer.sdk({
title: example.title,
swagger: example.swagger,
e2e: true,
simulate: true,
}).catch(() => {});
}}>
<a href={`/editor/?url=${encodeURIComponent(example.swagger)}&simulate=true&e2e=true`}
target="_blank">
{example.title}
</a>
</li>
Expand Down

0 comments on commit 11f7769

Please sign in to comment.