customer club + convert score to wallet

This commit is contained in:
hamid zarghami
2025-12-13 15:21:17 +03:30
parent 51f246897d
commit 345a46dc7c
5 changed files with 102 additions and 6 deletions
@@ -1,4 +1,4 @@
import { useQuery } from "@tanstack/react-query";
import { useMutation, useQuery } from "@tanstack/react-query";
import * as api from "../service/TransactionService";
export const useGetMyCoupons = () => {
@@ -14,3 +14,9 @@ export const useGetUserWallet = () => {
queryFn: api.getUserWallet,
});
};
export const useConvertScoreToWallet = () => {
return useMutation({
mutationFn: api.convertScoreToWallet,
});
};