mirror of
https://github.com/ershisan99/todolist_next.git
synced 2025-12-17 20:59:25 +00:00
initial commit, login page
This commit is contained in:
20
src/pages/_app.tsx
Normal file
20
src/pages/_app.tsx
Normal file
@@ -0,0 +1,20 @@
|
||||
import { type AppType } from "next/dist/shared/lib/utils";
|
||||
|
||||
import "../styles/globals.css";
|
||||
import { QueryClient } from "@tanstack/query-core";
|
||||
import { QueryClientProvider } from "@tanstack/react-query";
|
||||
import { AuthRedirect } from "../components/AuthRedirect";
|
||||
|
||||
const queryClient = new QueryClient();
|
||||
|
||||
const MyApp: AppType = ({ Component, pageProps }) => {
|
||||
return (
|
||||
<QueryClientProvider client={queryClient}>
|
||||
<AuthRedirect>
|
||||
<Component {...pageProps} />
|
||||
</AuthRedirect>
|
||||
</QueryClientProvider>
|
||||
);
|
||||
};
|
||||
|
||||
export default MyApp;
|
||||
Reference in New Issue
Block a user