aboutsummaryrefslogtreecommitdiffstats
path: root/frontend/pages/_app.tsx
blob: aa87acfe52fd6434abe90602ed1a22014f5083c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import type { AppProps } from "next/app";
import { ReactElement } from "react";
import { QueryClient, QueryClientProvider } from "react-query";
import "../styles/globals.css";

const queryClient = new QueryClient();

const MyApp = ({ Component, pageProps }: AppProps): ReactElement => {
    return (
        <QueryClientProvider client={queryClient}>
            <Component {...pageProps} />
        </QueryClientProvider>
    );
};

export default MyApp;