diff --git a/src/utils/helpers/.gitkeep b/src/utils/helpers/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/src/utils/helpers/provider.helper.tsx b/src/utils/helpers/provider.helper.tsx new file mode 100644 index 0000000..bb563cb --- /dev/null +++ b/src/utils/helpers/provider.helper.tsx @@ -0,0 +1,41 @@ +"use client"; + +import Header from "@/components/Header"; +import React, { PropsWithChildren } from "react"; +import { QueryClient, QueryClientProvider } from "react-query"; +import { ToastContainer, toast } from "react-toastify"; +import { RecoilRoot } from "recoil"; +import styled from "styled-components"; + +const queryClient = new QueryClient({ + defaultOptions: { + queries: { + refetchOnWindowFocus: false, + suspense: false, + }, + }, +}); + +const CustomToastContainer = styled(ToastContainer)` + .Toastify__toast { + color: black; + font-size: 14px; + } +`; + +const Provider = ({ children }: PropsWithChildren) => { + return ( + + + +
+ {children} + + + ); +}; + +export default Provider;