complete user bank cards page (create read delete)

This commit is contained in:
Alihaghighattalab
2024-08-14 18:10:45 +03:30
parent 855cbc414d
commit 5efff3f4b3
9 changed files with 53 additions and 41 deletions
+1 -1
View File
@@ -11,5 +11,5 @@ type DeleteCard = {
}
export const createNewCardMutation = (payload: CreateNewCard) => axiosInstance.post<any>("gps/bank-card", payload)
export const deleteCardMutation = (payload: DeleteCard) => axiosInstance.delete<any>(`gps/bank-card/:${payload?.id}`)
export const deleteCardMutation = (payload: DeleteCard) => axiosInstance.delete<any>(`gps/bank-card/${payload?.id}`)
export const getUserCardsList = () => axiosInstance.get<any>("gps/bank-card")