diff --git a/frontend/src/components/AboutUs/AddAboutUs.tsx b/frontend/src/components/AboutUs/AddAboutUs.tsx index 590c7d6..199bc48 100644 --- a/frontend/src/components/AboutUs/AddAboutUs.tsx +++ b/frontend/src/components/AboutUs/AddAboutUs.tsx @@ -19,7 +19,7 @@ import { } from "@chakra-ui/react" import { useMutation, useQueryClient } from "@tanstack/react-query" -import { type SubmitHandler, useForm, UseFormRegisterReturn } from "react-hook-form" +import { type SubmitHandler, useForm } from "react-hook-form" import { type ApiError, type AboutUsCreate, AboutUsService } from "../../client" import useCustomToast from "../../hooks/useCustomToast" import { handleError } from "../../utils" diff --git a/frontend/src/components/AboutUs/EditAboutUs.tsx b/frontend/src/components/AboutUs/EditAboutUs.tsx index 3f4b872..cdb9ecb 100644 --- a/frontend/src/components/AboutUs/EditAboutUs.tsx +++ b/frontend/src/components/AboutUs/EditAboutUs.tsx @@ -101,7 +101,7 @@ const EditAboutUs = ({ aboutUs, isOpen, onClose }: EditAboutUsProps) => { } return EditorState.createEmpty(); }); - const [content, setContent] = useState(aboutUs.description); + // const [content, setContent] = useState(aboutUs.description); // const validateFiles = (value: File) => { // if (typeof value === 'string') return true; @@ -189,7 +189,7 @@ const EditAboutUs = ({ aboutUs, isOpen, onClose }: EditAboutUsProps) => { onEditorStateChange={newState => { setEditorState(newState); const newContent = draftToHtml(convertToRaw(newState.getCurrentContent())); - setContent(newContent); + //setContent(newContent); reset({ description: newContent, });