From 479d1cd680950fa476f6d1a7a5ac9c67ff7ea5d0 Mon Sep 17 00:00:00 2001 From: 1ilit <1ilit@proton.me> Date: Sun, 25 May 2025 22:24:44 +0400 Subject: [PATCH] update stuff idek --- src/components/CodeEditor/index.jsx | 19 +++-- src/components/EditorHeader/ControlPanel.jsx | 2 +- .../EditorSidePanel/DBMLEditor/DBMLEditor.jsx | 43 +++++++++++ .../EditorSidePanel/DBMLEditor/index.jsx | 72 ------------------- src/components/EditorSidePanel/SidePanel.jsx | 23 +++++- src/i18n/locales/en.js | 3 +- 6 files changed, 79 insertions(+), 83 deletions(-) create mode 100644 src/components/EditorSidePanel/DBMLEditor/DBMLEditor.jsx delete mode 100644 src/components/EditorSidePanel/DBMLEditor/index.jsx diff --git a/src/components/CodeEditor/index.jsx b/src/components/CodeEditor/index.jsx index baa07ca..df34824 100644 --- a/src/components/CodeEditor/index.jsx +++ b/src/components/CodeEditor/index.jsx @@ -6,7 +6,11 @@ import { IconCopy } from "@douyinfe/semi-icons"; import { setUpDBML } from "./setUpDBML"; import "./styles.css"; -export default function CodeEditor({ showCopyButton, ...props }) { +export default function CodeEditor({ + showCopyButton, + extraControls, + ...props +}) { const { settings } = useSettings(); const { database } = useDiagram(); const { t } = useTranslation(); @@ -36,11 +40,14 @@ export default function CodeEditor({ showCopyButton, ...props }) { onMount={handleEditorMount} /> {showCopyButton && ( -