forked from CEOS-Developers/react-vote-18th
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: 파트장 투표하기 기능 API 연결 및 투표, 중복투표시 alert창 띄우기
- Loading branch information
Showing
4 changed files
with
44 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { axiosInstance } from "@/common/libs/axios"; | ||
|
||
export default async function usePatchMemVote(memberId: number) { | ||
try { | ||
const response = await axiosInstance.patch(`/app/member/${memberId}/vote`); | ||
return response.data; | ||
} catch (error) { | ||
throw error; | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
src/features/vote/queries/usePatchVote.tsx → ...eatures/vote/queries/usePatchTeamVote.tsx
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