diff --git a/web/components/basic_modals.tsx b/web/components/basic_modals.tsx index 150b1ce8..79db6ca2 100644 --- a/web/components/basic_modals.tsx +++ b/web/components/basic_modals.tsx @@ -1,6 +1,7 @@ import { CompletionContext, CompletionResult } from "@codemirror/autocomplete"; -import { useRef, useState } from "preact/hooks"; +import { useEffect, useRef, useState } from "preact/hooks"; import { MiniEditor } from "./mini_editor.tsx"; +import { ComponentChildren, Ref } from "preact"; export function Prompt({ message, @@ -19,7 +20,11 @@ export function Prompt({ }) { const [text, setText] = useState(defaultValue || ""); const returnEl = ( -