mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
86cb23777e
* fix: issue sidebar cycle and module dropdown fix * style: my issue page * style: date picker theming * fix: cycle modal * style: date picker * fix: info icon fix * feat: integration banner * feat: project integration banner * fix: module card progress bar fix * style: integration banner * style: workspace sidebar * fix: cycle date checker * fix: calendar page view dropdown
52 lines
1.4 KiB
TypeScript
52 lines
1.4 KiB
TypeScript
import dynamic from "next/dynamic";
|
|
|
|
// themes
|
|
import { ThemeProvider } from "next-themes";
|
|
|
|
// styles
|
|
import "styles/globals.css";
|
|
import "styles/editor.css";
|
|
import "styles/command-pallette.css";
|
|
import "styles/nprogress.css";
|
|
import "styles/react-datepicker.css";
|
|
|
|
// router
|
|
import Router from "next/router";
|
|
|
|
// nprogress
|
|
import NProgress from "nprogress";
|
|
|
|
// contexts
|
|
import { UserProvider } from "contexts/user.context";
|
|
import { ToastContextProvider } from "contexts/toast.context";
|
|
import { ThemeContextProvider } from "contexts/theme.context";
|
|
// types
|
|
import type { AppProps } from "next/app";
|
|
// constants
|
|
import { THEMES } from "constants/themes";
|
|
|
|
const CrispWithNoSSR = dynamic(() => import("constants/crisp"), { ssr: false });
|
|
|
|
// nprogress
|
|
NProgress.configure({ showSpinner: false });
|
|
Router.events.on("routeChangeStart", NProgress.start);
|
|
Router.events.on("routeChangeError", NProgress.done);
|
|
Router.events.on("routeChangeComplete", NProgress.done);
|
|
|
|
function MyApp({ Component, pageProps }: AppProps) {
|
|
return (
|
|
<ThemeProvider themes={THEMES} defaultTheme="light">
|
|
<UserProvider>
|
|
<ToastContextProvider>
|
|
<ThemeContextProvider>
|
|
<CrispWithNoSSR />
|
|
<Component {...pageProps} />
|
|
</ThemeContextProvider>
|
|
</ToastContextProvider>
|
|
</UserProvider>
|
|
</ThemeProvider>
|
|
);
|
|
}
|
|
|
|
export default MyApp;
|