forked from github/plane
b1592adc66
* dev: initialize new date picker * style: selected date focus state * chore: replace custom date filter modal components * chore: replaced inbox snooze popover datepicker * chore: replaced the custom date picker * style: date range picker designed * chore: date range picker implemented throughout the platform * chore: updated tab indices * chore: range-picker in the issue layouts * chore: passed due date color * chore: removed range picker from issue dates
39 lines
1.0 KiB
TypeScript
39 lines
1.0 KiB
TypeScript
import { ReactElement } from "react";
|
|
import Head from "next/head";
|
|
import { AppProps } from "next/app";
|
|
// styles
|
|
import "styles/globals.css";
|
|
import "styles/command-pallette.css";
|
|
import "styles/nprogress.css";
|
|
import "styles/react-day-picker.css";
|
|
// constants
|
|
import { SITE_TITLE } from "constants/seo-variables";
|
|
// mobx store provider
|
|
import { StoreProvider } from "contexts/store-context";
|
|
|
|
import { AppProvider } from "lib/app-provider";
|
|
// types
|
|
import { NextPageWithLayout } from "lib/types";
|
|
|
|
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>
|
|
<StoreProvider {...pageProps}>
|
|
<AppProvider>{getLayout(<Component {...pageProps} />)}</AppProvider>
|
|
</StoreProvider>
|
|
</>
|
|
);
|
|
}
|
|
|
|
export default MyApp;
|