having one solution for different components of app
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import "../styles/globals.css";
|
||||
import "antd/dist/antd.css";
|
||||
import Head from "next/head";
|
||||
import { AuthProvider } from "../contexts/authContext";
|
||||
import SiteLayout from "../components/Layouts/SiteLayout";
|
||||
import { Toaster } from "react-hot-toast";
|
||||
|
||||
function MyApp({ Component, pageProps }) {
|
||||
return (
|
||||
<SiteLayout>
|
||||
<AuthProvider>
|
||||
<Component {...pageProps} />
|
||||
</AuthProvider>
|
||||
|
||||
<Toaster position="top-center" />
|
||||
</SiteLayout>
|
||||
);
|
||||
}
|
||||
|
||||
export default MyApp;
|
||||
Reference in New Issue
Block a user