From 71f3ae7e5527fe16503c8b638eef03a737de9152 Mon Sep 17 00:00:00 2001 From: Chaemin-L Date: Thu, 15 Feb 2024 23:46:56 +0900 Subject: [PATCH] =?UTF-8?q?style:=20unused=20import=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/comment/comment-form.tsx | 2 -- src/hooks/api/main/useApiGetPostState.ts | 1 - 2 files changed, 3 deletions(-) diff --git a/src/app/comment/comment-form.tsx b/src/app/comment/comment-form.tsx index 5793d14..2f6aee9 100644 --- a/src/app/comment/comment-form.tsx +++ b/src/app/comment/comment-form.tsx @@ -25,7 +25,6 @@ export const CommentFormPage = () => { const data = useLocation().state as GetOnePostType; const [nickname, setNickname] = useState(""); const [image, setImage] = useState(""); - const [content, setContent] = useState(""); const [openCrop, setOpenCrop] = useState(false); const [height, setHeight] = useState(""); const { compressImage } = useImageCompress(); @@ -39,7 +38,6 @@ export const CommentFormPage = () => { useEffect(() => { setNickname(sessionStorage.getItem("comment_nickname") ?? ""); setImage(sessionStorage.getItem("comment_image") ?? ""); - setContent(sessionStorage.getItem("comment_content") ?? ""); }, []); useEffect(() => { diff --git a/src/hooks/api/main/useApiGetPostState.ts b/src/hooks/api/main/useApiGetPostState.ts index f089de5..31ea93d 100644 --- a/src/hooks/api/main/useApiGetPostState.ts +++ b/src/hooks/api/main/useApiGetPostState.ts @@ -1,5 +1,4 @@ import { useQuery } from "@tanstack/react-query"; -import Cookies from "js-cookie"; import { api } from "@/api";