-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: nodeApi로 변환 로직 추가 * fix: 임시 디바운싱 적용 * fix: api 교체 * fix: 간헐적으로 unclassified 안보이는 문제 수정 * feat: pick 휴지통, 복원, 삭제 api 연결완료 * fix: 이름 길어지면 ...으로 표시 * fix: 가상 미분류 폴더 렌더링 방지 처리 * fix: 버그유발 기능 비활성화 * fix: fix * fix: fix2
- Loading branch information
Showing
24 changed files
with
475 additions
and
229 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
frontend/techpick/src/features/nodeManagement/api/pick/useDeletePick.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { useMutation } from '@tanstack/react-query'; | ||
import { deletePick } from '@/features/nodeManagement/api/pick/pickQueryFunctions'; | ||
|
||
export const useDeletePick = () => { | ||
return useMutation({ | ||
mutationFn: deletePick, | ||
}); | ||
}; |
11 changes: 11 additions & 0 deletions
11
frontend/techpick/src/features/nodeManagement/api/pick/useGetPicksByParentId.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { getPicksByParentId } from '@/features/nodeManagement/api/pick/pickQueryFunctions'; | ||
import { useQuery } from '@tanstack/react-query'; | ||
import { ApiPickData } from '@/shared/types/ApiTypes'; | ||
|
||
export const useGetPicksByParentId = (parentId: string) => { | ||
return useQuery<ApiPickData[], Error>({ | ||
queryKey: ['picksByParentId', parentId], | ||
queryFn: async () => await getPicksByParentId(parentId), | ||
enabled: !!parentId, | ||
}); | ||
}; |
8 changes: 8 additions & 0 deletions
8
frontend/techpick/src/features/nodeManagement/api/pick/useMovePick.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { useMutation } from '@tanstack/react-query'; | ||
import { putPickMove } from '@/features/nodeManagement/api/pick/pickQueryFunctions'; | ||
|
||
export const useMovePick = () => { | ||
return useMutation({ | ||
mutationFn: putPickMove, | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.