mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
96399c7112
* feat: filters in plane deploy implemented multi-level dropdown for plane deploy * style: spacing and fonts * feat: plane deploy implemented authentication/theming, created/modified all the required store & services * devL reactions, voting, comments and theme
32 lines
849 B
TypeScript
32 lines
849 B
TypeScript
"use client";
|
|
|
|
// root styles
|
|
import "styles/globals.css";
|
|
|
|
// next theme
|
|
import { ThemeProvider } from "next-themes";
|
|
|
|
// toast alert
|
|
import { ToastContextProvider } from "contexts/toast.context";
|
|
|
|
// mobx store provider
|
|
import { MobxStoreProvider } from "lib/mobx/store-provider";
|
|
import MobxStoreInit from "lib/mobx/store-init";
|
|
|
|
const RootLayout = ({ children }: { children: React.ReactNode }) => (
|
|
<html lang="en" suppressHydrationWarning>
|
|
<body className="antialiased bg-custom-background-90 w-100">
|
|
<MobxStoreProvider>
|
|
<MobxStoreInit />
|
|
<ToastContextProvider>
|
|
<ThemeProvider attribute="class" defaultTheme="system" enableSystem>
|
|
<main>{children}</main>
|
|
</ThemeProvider>
|
|
</ToastContextProvider>
|
|
</MobxStoreProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
|
|
export default RootLayout;
|