mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
fd5b7d20a8
* chore: instance type updated * chore: instance not ready screen added * chore: instance layout added * chore: instance magic sign in endpoint and type added * chore: instance admin password endpoint added * chore: instance setup page added * chore: instance setup form added * chore: instance layout updated * fix: instance admin workflow setup * fix: admin workflow setup --------- Co-authored-by: sriram veeraghanta <veeraghanta.sriram@gmail.com>
40 lines
1.1 KiB
TypeScript
40 lines
1.1 KiB
TypeScript
import { ReactElement } from "react";
|
|
import Head from "next/head";
|
|
import { AppProps } from "next/app";
|
|
// styles
|
|
import "styles/globals.css";
|
|
import "styles/editor.css";
|
|
import "styles/table.css";
|
|
import "styles/command-pallette.css";
|
|
import "styles/nprogress.css";
|
|
import "styles/react-datepicker.css";
|
|
// constants
|
|
import { SITE_TITLE } from "constants/seo-variables";
|
|
// mobx store provider
|
|
import { MobxStoreProvider } from "lib/mobx/store-provider";
|
|
import { AppProvider } from "lib/app-provider";
|
|
// types
|
|
import { NextPageWithLayout } from "types/app";
|
|
|
|
type AppPropsWithLayout = AppProps & {
|
|
Component: NextPageWithLayout;
|
|
};
|
|
|
|
function MyApp({ Component, pageProps }: AppPropsWithLayout) {
|
|
// Use the layout defined at the page level, if available
|
|
const getLayout = Component.getLayout ?? ((page: ReactElement) => page);
|
|
|
|
return (
|
|
<>
|
|
<Head>
|
|
<title>{SITE_TITLE}</title>
|
|
</Head>
|
|
<MobxStoreProvider {...pageProps}>
|
|
<AppProvider>{getLayout(<Component {...pageProps} />)}</AppProvider>
|
|
</MobxStoreProvider>
|
|
</>
|
|
);
|
|
}
|
|
|
|
export default MyApp;
|