diff --git a/src/frontend/src/modals/promptModal/index.tsx b/src/frontend/src/modals/promptModal/index.tsx deleted file mode 100644 index a1b3aa4ba..000000000 --- a/src/frontend/src/modals/promptModal/index.tsx +++ /dev/null @@ -1,120 +0,0 @@ -import { Dialog, Transition } from "@headlessui/react"; -import { DocumentTextIcon, XMarkIcon } from "@heroicons/react/24/outline"; -import { Fragment, useContext, useRef, useState } from "react"; -import { alertContext } from "../../contexts/alertContext"; -import { darkContext } from "../../contexts/darkContext"; -import { PopUpContext } from "../../contexts/popUpContext"; -export default function PromptAreaModal({ - value, - setValue, -}: { - setValue: (value: string) => void; - value: string; -}) { - const [open, setOpen] = useState(true); - const [myValue, setMyValue] = useState(value); - const { dark } = useContext(darkContext); - const { setErrorData, setSuccessData } = useContext(alertContext); - const { closePopUp, setCloseEdit } = useContext(PopUpContext); - const ref = useRef(); - function setModalOpen(x: boolean) { - setOpen(x); - if (x === false) { - setTimeout(() => { - setCloseEdit("prompt"); - closePopUp(); - }, 300); - } - } - return ( - - - - - - - - - - - - { - setModalOpen(false); - }} - > - Close - - - - - - - - - - - Edit Prompt - - - - - - - { - setMyValue(e.target.value); - setValue(e.target.value); - }} - /> - - - - - { - }} - > - Check & Save - - - - - - - - - - ); -} diff --git a/src/frontend/src/modals/textAreaModal/index.tsx b/src/frontend/src/modals/textAreaModal/index.tsx deleted file mode 100644 index 83186bbea..000000000 --- a/src/frontend/src/modals/textAreaModal/index.tsx +++ /dev/null @@ -1,121 +0,0 @@ -import { Dialog, Transition } from "@headlessui/react"; -import { - ClipboardDocumentListIcon, - XMarkIcon, -} from "@heroicons/react/24/outline"; -import { Fragment, useContext, useRef, useState } from "react"; -import { PopUpContext } from "../../contexts/popUpContext"; - -export default function TextAreaModal({ - value, - setValue, -}: { - setValue: (value: string) => void; - value: string | string[]; -}) { - const [open, setOpen] = useState(true); - const [myValue, setMyValue] = useState(value); - const { closePopUp, setCloseEdit } = useContext(PopUpContext); - const ref = useRef(); - function setModalOpen(x: boolean) { - setOpen(x); - if (x === false) { - setTimeout(() => { - setCloseEdit("textarea"); - closePopUp(); - }, 300); - } - } - return ( - - - - - - - - - - - - { - setModalOpen(false); - }} - > - Close - - - - - - - - - - - Edit text - - - - - - - { - setMyValue(e.target.value); - setValue(e.target.value); - }} - /> - - - - - { - setModalOpen(false); - }} - > - Finish editing - - - - - - - - - - ); -}