mirror of
https://github.com/makeplane/plane.git
synced 2025-12-21 14:19:38 +01:00
- Enhanced ESLint configuration by adding new rules for import consistency and type imports. - Refactored multiple files to replace regular imports with type imports for better clarity and performance. - Ensured consistent use of type imports across the application to align with TypeScript best practices. Co-authored-by: sriram veeraghanta <veeraghanta.sriram@gmail.com>
30 lines
819 B
TypeScript
30 lines
819 B
TypeScript
"use client";
|
|
|
|
import type { ReactNode, FC } from "react";
|
|
import { ThemeProvider } from "next-themes";
|
|
// components
|
|
import { TranslationProvider } from "@plane/i18n";
|
|
import { InstanceProvider } from "@/lib/instance-provider";
|
|
import { StoreProvider } from "@/lib/store-provider";
|
|
import { ToastProvider } from "@/lib/toast-provider";
|
|
|
|
interface IAppProvider {
|
|
children: ReactNode;
|
|
}
|
|
|
|
export const AppProvider: FC<IAppProvider> = (props) => {
|
|
const { children } = props;
|
|
|
|
return (
|
|
<ThemeProvider themes={["light", "dark"]} defaultTheme="system" enableSystem>
|
|
<StoreProvider>
|
|
<TranslationProvider>
|
|
<ToastProvider>
|
|
<InstanceProvider>{children}</InstanceProvider>
|
|
</ToastProvider>
|
|
</TranslationProvider>
|
|
</StoreProvider>
|
|
</ThemeProvider>
|
|
);
|
|
};
|