Updates
This commit is contained in:
+12
-2
@@ -1,6 +1,16 @@
|
||||
import "@/src/styles/globals.css";
|
||||
import type { AppProps } from "next/app";
|
||||
import { createContext } from "react";
|
||||
import { PagePropsType, TurboCIAdminAppContextType } from "../types";
|
||||
|
||||
export default function App({ Component, pageProps }: AppProps) {
|
||||
return <Component {...pageProps} />;
|
||||
export const AppContext = createContext<TurboCIAdminAppContextType>(
|
||||
{} as TurboCIAdminAppContextType,
|
||||
);
|
||||
|
||||
export default function App({ Component, pageProps }: AppProps<PagePropsType>) {
|
||||
return (
|
||||
<AppContext.Provider value={{ pageProps }}>
|
||||
<Component {...pageProps} />
|
||||
</AppContext.Provider>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Main from "@/src/components/pages/home";
|
||||
import Main from "@/src/components/pages/admin";
|
||||
import defaultAdminProps from "@/src/functions/pages/admin/default-admin-props";
|
||||
import Layout from "@/src/layouts/admin";
|
||||
import { GetServerSideProps } from "next";
|
||||
|
||||
Reference in New Issue
Block a user