diff --git a/src/contexts/UserAuthenticationContext.tsx b/src/contexts/UserAuthenticationContext.tsx index 0add797..ba4f6eb 100644 --- a/src/contexts/UserAuthenticationContext.tsx +++ b/src/contexts/UserAuthenticationContext.tsx @@ -1,3 +1,5 @@ +import getPaymentTypes from "@/utils/requests/getPaymentTypes"; +import { useQuery } from "@tanstack/react-query"; import { createContext, useContext, useState } from "react"; import type { IauthenticationData } from "./Types"; export interface UserAuthenticationContextProps { @@ -19,6 +21,16 @@ export const UserAuthenticationContextProvider = ({ children }: { children: Reac refresh: "", }); + const { data, isLoading, error } = useQuery({ + queryKey: ["paymentTypes"], + queryFn: getPaymentTypes, + enabled: true, + }); + + console.log("data", data); + console.log("isLoading", isLoading); + console.log("error", error); + return (