Skip to content

Commit

Permalink
fix: lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
eun-hak committed Mar 22, 2024
1 parent ab09660 commit 27a0b42
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/remote/api/requests/favorite/favorite.get.api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const getFavoriteList = async (
pageNum: number,
size: number,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
sortType: SearchFilterType
sortType: SearchFilterType,
) => {
// TODO: 필터 기능 추가
// const response = await getRequest<ProductListInfoType>(`/likes/search?sortType=${sortType}&page=${pageNum}&size=${size}`);
Expand Down
7 changes: 4 additions & 3 deletions src/remote/queries/favorite/addFavoriteList.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
// optimistic UPdate로 즐겨찾기 구현

import { postFavoriteList } from '@/remote/api/requests/favorite/favorite.get.api';
import { useMutation } from '@tanstack/react-query';

function addFavoriteList() {
import { postFavoriteList } from '@/remote/api/requests/favorite/favorite.get.api';

function useAddFavoriteList() {
return useMutation({
mutationFn: postFavoriteList,
onSuccess: () => {},
onError: () => {},
});
}

export default addFavoriteList;
export default useAddFavoriteList;
7 changes: 4 additions & 3 deletions src/remote/queries/favorite/deleteFavoriteList.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
// optimistic UPdate로 즐겨찾기 구현

import { delFavoriteList } from '@/remote/api/requests/favorite/favorite.get.api';
import { useMutation } from '@tanstack/react-query';

function deleteFavoriteList() {
import { delFavoriteList } from '@/remote/api/requests/favorite/favorite.get.api';

function useDeleteFavoriteList() {
return useMutation({
mutationFn: delFavoriteList,
onSuccess: () => {},
onError: () => {},
});
}

export default deleteFavoriteList;
export default useDeleteFavoriteList;

0 comments on commit 27a0b42

Please sign in to comment.