mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
fix: update Markdown utility import path and adjust helpText state type in CodeEditor component
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import Editor from "@monaco-editor/react";
|
||||
import CodeType from "../../../Types/Code/CodeType";
|
||||
import MarkdownUtil from "../../../Utils/Markdown";
|
||||
import MarkdownUtil from "../../Utils/Markdown";
|
||||
import React, {
|
||||
FunctionComponent,
|
||||
ReactElement,
|
||||
@@ -33,7 +33,7 @@ const CodeEditor: FunctionComponent<ComponentProps> = (
|
||||
let className: string = "";
|
||||
|
||||
const [placeholder, setPlaceholder] = useState<string>("");
|
||||
const [helpText, setHelpText] = useState<string>("");
|
||||
const [helpText, setHelpText] = useState<string | ReactElement>("");
|
||||
const editorRef: React.MutableRefObject<any> = useRef<any>(null);
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user