Skip to content

Commit

Permalink
chore(re-export): 변수명 혼동 이슈
Browse files Browse the repository at this point in the history
  • Loading branch information
jyh071116 committed Dec 27, 2023
1 parent b375ad8 commit cf22f36
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/templates/post/context/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default as currentCategory } from "./currentCategory.context";
export { default as currentCategoryContext } from "./currentCategory.context";
2 changes: 1 addition & 1 deletion src/templates/post/hooks/usePost.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Post>(defaultPostData);
Expand Down
2 changes: 1 addition & 1 deletion src/templates/post/hooks/usePostWritable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit cf22f36

Please sign in to comment.