feat: 등록 페이지에서 "atfl-cd-key" 쿠키 초기화
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
"use client";
|
||||
|
||||
import { useEffect } from "react";
|
||||
import { useRouter } from "next/navigation";
|
||||
import { useForm } from "react-hook-form";
|
||||
import { zodResolver } from "@hookform/resolvers/zod";
|
||||
import { useMutation } from "@tanstack/react-query";
|
||||
import { PostForm } from "@/widgets/post";
|
||||
import { PostApi, postFormSchema, type PostFormData } from "@/entities/post";
|
||||
import { useAlertStore, useUserStore } from "@/shared/lib";
|
||||
import { setCookie, useAlertStore, useUserStore } from "@/shared/lib";
|
||||
import { NoticeLayout } from "./notice-layout";
|
||||
|
||||
function CreatePage({ bbsId }: { bbsId: string }) {
|
||||
@@ -34,6 +35,10 @@ function CreatePage({ bbsId }: { bbsId: string }) {
|
||||
},
|
||||
});
|
||||
|
||||
useEffect(() => {
|
||||
setCookie("atfl-cd-key", "");
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<NoticeLayout>
|
||||
<div className="card card-border !mt-6">
|
||||
|
||||
Reference in New Issue
Block a user