Skip to content

Commit

Permalink
fix: resolve missing call signature error in hook return object
Browse files Browse the repository at this point in the history
  • Loading branch information
jungwoo3490 committed Jan 22, 2025
1 parent c498a69 commit ca42e80
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/History/components/MyLecueBook/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ function MyLecueBook(props: LecueBookProps) {
const navigate = useNavigate();

const deleteBookMutation = useDeleteMyBook();
const postFavoriteMutation = usePostFavorite('lecueBook');
const deleteFavoriteMutation = useDeleteFavorite('lecueBook');
const { postFavoriteMutation: postFavoriteMutation } =
usePostFavorite('lecueBook');
const { deleteFavoriteMutation: deleteFavoriteMutation } =
useDeleteFavorite('lecueBook');

const convertNoteCount = (noteNum: number) => {
setNoteCount(noteNum.toLocaleString());
Expand Down
6 changes: 4 additions & 2 deletions src/components/common/LecueBook/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ function LecueBook(props: LecueBookProps) {

const navigate = useNavigate();

const deleteMypageMutation = useDeleteFavorite('mypage');
const deleteHomeMutation = useDeleteFavorite('home');
const { deleteFavoriteMutation: deleteMypageMutation } =
useDeleteFavorite('mypage');
const { deleteFavoriteMutation: deleteHomeMutation } =
useDeleteFavorite('home');

const handleClickFavoriteBtn = (
bookId: number,
Expand Down

0 comments on commit ca42e80

Please sign in to comment.