From cf22f36c76ff3f8e02afa5063a81964d48eb4428 Mon Sep 17 00:00:00 2001 From: jyh071116 Date: Wed, 27 Dec 2023 12:08:08 +0900 Subject: [PATCH] =?UTF-8?q?chore(re-export):=20=EB=B3=80=EC=88=98=EB=AA=85?= =?UTF-8?q?=20=ED=98=BC=EB=8F=99=20=EC=9D=B4=EC=8A=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/templates/post/context/index.ts | 2 +- src/templates/post/hooks/usePost.ts | 2 +- src/templates/post/hooks/usePostWritable.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/templates/post/context/index.ts b/src/templates/post/context/index.ts index be6470d3..87217f1e 100644 --- a/src/templates/post/context/index.ts +++ b/src/templates/post/context/index.ts @@ -1 +1 @@ -export { default as currentCategory } from "./currentCategory.context"; +export { default as currentCategoryContext } from "./currentCategory.context"; diff --git a/src/templates/post/hooks/usePost.ts b/src/templates/post/hooks/usePost.ts index 231e22ea..0d05dcff 100644 --- a/src/templates/post/hooks/usePost.ts +++ b/src/templates/post/hooks/usePost.ts @@ -9,7 +9,7 @@ import { KEY, ROUTER } from "@/constants"; import { defaultPostData } from "../assets/data"; import { useDeletePostMutation } from "../services/post/mutation.service"; import { Post, PostCategoryType } from "../types"; -import currentCategoryContext from "../context/currentCategory.context"; +import { currentCategoryContext } from "../context"; const usePost = (defaultPostDataState?: Post) => { const [postData, setPostData] = React.useState(defaultPostData); diff --git a/src/templates/post/hooks/usePostWritable.ts b/src/templates/post/hooks/usePostWritable.ts index 4f1a4fc6..70c8a672 100644 --- a/src/templates/post/hooks/usePostWritable.ts +++ b/src/templates/post/hooks/usePostWritable.ts @@ -9,7 +9,7 @@ import { } from "../services/post/mutation.service"; import { Post, PostCategoryType, PostData } from "../types"; import { defaultPostData } from "../assets/data"; -import currentCategoryContext from "../context/currentCategory.context"; +import { currentCategoryContext } from "../context"; // edit과 write를 동시에 처리하는 훅 const usePostWritable = (defaultPostDataState?: Post) => {