Remove Internationalization
Remove i18n
'use client';
import { ReactElement } from 'react';
// next
import { SessionProvider } from 'next-auth/react';
// project imports
import ThemeCustomization from 'themes';
// ❌ Removed Locales import
// import Locales from 'components/Locales';
import ScrollTop from 'components/ScrollTop';
import RTLLayout from 'components/RTLLayout';
import Snackbar from 'components/@extended/Snackbar';
import Notistack from 'components/third-party/Notistack';
import { ConfigProvider } from 'contexts/ConfigContext';
// ==============================|| APP - THEME, ROUTER, LOCAL ||============================== //
export default function ProviderWrapper({ children }: { children: ReactElement }) {
return (
<ConfigProvider>
<ThemeCustomization>
<RTLLayout>
{/* <Locales> */}
<ScrollTop>
<SessionProvider refetchInterval={0}>
<Notistack>
<Snackbar />
{children}
</Notistack>
</SessionProvider>
</ScrollTop>
{/* </Locales> */}
</RTLLayout>
</ThemeCustomization>
</ConfigProvider>
);
}
Before :
After:
Repeat the same cleanup in:
src/layout/Component/Drawer/Navigation/NavGroup.tsxsrc/layout/Component/Drawer/Navigation/NavItem.tsxsrc/layout/Dashboard/Drawer/DrawerContent/Navigation/NavCollapse.tsxsrc/layout/Dashboard/Drawer/DrawerContent/Navigation/NavGroup.tsxsrc/layout/Dashboard/Drawer/DrawerContent/Navigation/NavItem.tsx
Before :
After:
Repeat the same cleanup in:
src/layout/ComponentLayout/Drawer/Navigation/NavGroup.jsxsrc/layout/ComponentLayout/Drawer/Navigation/NavItem.jsxsrc/layout/DashboardLayout/Drawer/DrawerContent/Navigation/NavCollapse.jsxsrc/layout/DashboardLayout/Drawer/DrawerContent/Navigation/NavGroup.jsxsrc/layout/DashboardLayout/Drawer/DrawerContent/Navigation/NavItem.jsx
Before :
After:
Repeat the same cleanup in:
src/layout/Component/Drawer/Navigation/NavGroup.tsxsrc/layout/Component/Drawer/Navigation/NavItem.tsxsrc/layout/Dashboard/Drawer/DrawerContent/Navigation/NavCollapse.tsxsrc/layout/Dashboard/Drawer/DrawerContent/Navigation/NavGroup.tsxsrc/layout/Dashboard/Drawer/DrawerContent/Navigation/NavItem.tsx
Before :
After:
Repeat the same cleanup in:
src/layout/ComponentLayout/Drawer/Navigation/NavGroup.jsxsrc/layout/ComponentLayout/Drawer/Navigation/NavItem.jsxsrc/layout/DashboardLayout/Drawer/DrawerContent/Navigation/NavCollapse.jsxsrc/layout/DashboardLayout/Drawer/DrawerContent/Navigation/NavGroup.jsxsrc/layout/DashboardLayout/Drawer/DrawerContent/Navigation/NavItem.jsx
Last updated