diff --git a/python/src/aiconfig/editor/client/src/Editor.tsx b/python/src/aiconfig/editor/client/src/LocalEditor.tsx similarity index 98% rename from python/src/aiconfig/editor/client/src/Editor.tsx rename to python/src/aiconfig/editor/client/src/LocalEditor.tsx index 5888e02f5..40a48171c 100644 --- a/python/src/aiconfig/editor/client/src/Editor.tsx +++ b/python/src/aiconfig/editor/client/src/LocalEditor.tsx @@ -1,9 +1,9 @@ -import EditorContainer, { +import AIConfigEditor, { AIConfigCallbacks, RunPromptStreamCallback, RunPromptStreamErrorCallback, RunPromptStreamErrorEvent, -} from "./components/EditorContainer"; +} from "./components/AIConfigEditor"; import { Flex, Loader, MantineProvider, Image } from "@mantine/core"; import { AIConfig, @@ -229,7 +229,7 @@ export default function Editor() { deg: 45, }, // local editor theme - globalStyles: (local) => ({ + globalStyles: () => ({ ".editorBackground": { background: "radial-gradient(ellipse at top,#08122d,#030712),radial-gradient(ellipse at bottom,#030712,#030712)", @@ -400,7 +400,7 @@ export default function Editor() { ) : ( - + )} diff --git a/python/src/aiconfig/editor/client/src/components/EditorContainer.tsx b/python/src/aiconfig/editor/client/src/components/AIConfigEditor.tsx similarity index 100% rename from python/src/aiconfig/editor/client/src/components/EditorContainer.tsx rename to python/src/aiconfig/editor/client/src/components/AIConfigEditor.tsx diff --git a/python/src/aiconfig/editor/client/src/index.tsx b/python/src/aiconfig/editor/client/src/index.tsx index 4af255329..fccc9ab4e 100644 --- a/python/src/aiconfig/editor/client/src/index.tsx +++ b/python/src/aiconfig/editor/client/src/index.tsx @@ -1,12 +1,12 @@ import React from "react"; import ReactDOM from "react-dom/client"; -import Editor from "./Editor"; +import LocalEditor from "./LocalEditor"; const root = ReactDOM.createRoot( document.getElementById("root") as HTMLElement ); root.render( - + );