complete sorting and filtering datatable and working with local storage for caching data
This commit is contained in:
@@ -1,11 +1,7 @@
|
||||
import 'react-toastify/dist/ReactToastify.css';
|
||||
import "react-toastify/dist/ReactToastify.css";
|
||||
|
||||
const Layout = ({children}) => {
|
||||
return (
|
||||
<>
|
||||
{children}
|
||||
</>
|
||||
)
|
||||
}
|
||||
const Layout = ({ children }) => {
|
||||
return <>{children}</>;
|
||||
};
|
||||
|
||||
export default Layout
|
||||
export default Layout;
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
const Page = () => {
|
||||
return (
|
||||
<div>dashboard</div>
|
||||
)
|
||||
}
|
||||
return <div>dashboard</div>;
|
||||
};
|
||||
|
||||
export default Page
|
||||
export default Page;
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
import {Box, Stack} from "@mui/material";
|
||||
import { Box, Stack } from "@mui/material";
|
||||
import HeaderWithLogo from "@/components/layouts/dashboard/headerWithLogo";
|
||||
import HeaderWithSidebar from "@/components/layouts/dashboard/headerWithSidebar";
|
||||
import 'react-toastify/dist/ReactToastify.css';
|
||||
import "react-toastify/dist/ReactToastify.css";
|
||||
|
||||
const Template = ({children}) => {
|
||||
return (<Stack>
|
||||
<HeaderWithLogo/>
|
||||
<Box>
|
||||
<HeaderWithSidebar>
|
||||
{children}
|
||||
</HeaderWithSidebar>
|
||||
</Box>
|
||||
</Stack>)
|
||||
}
|
||||
const Template = ({ children }) => {
|
||||
return (
|
||||
<Stack>
|
||||
<HeaderWithLogo />
|
||||
<Box>
|
||||
<HeaderWithSidebar>{children}</HeaderWithSidebar>
|
||||
</Box>
|
||||
</Stack>
|
||||
);
|
||||
};
|
||||
|
||||
export default Template
|
||||
export default Template;
|
||||
|
||||
@@ -1,17 +1,15 @@
|
||||
import {TableSettingProvider} from "@/lib/contexts/tableSetting";
|
||||
import { TableSettingProvider } from "@/lib/contexts/tableSetting";
|
||||
|
||||
export const metadata = {
|
||||
title: 'سامانه جامع راهداری',
|
||||
}
|
||||
title: "سامانه جامع راهداری",
|
||||
};
|
||||
|
||||
export default function RootLayout({children}) {
|
||||
export default function RootLayout({ children }) {
|
||||
return (
|
||||
<html lang="fa" dir={'rtl'}>
|
||||
<body style={{height: '100vh'}}>
|
||||
<TableSettingProvider>
|
||||
{children}
|
||||
</TableSettingProvider>
|
||||
</body>
|
||||
<html lang="fa" dir={"rtl"}>
|
||||
<body style={{ height: "100vh" }}>
|
||||
<TableSettingProvider>{children}</TableSettingProvider>
|
||||
</body>
|
||||
</html>
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
'use client'
|
||||
"use client";
|
||||
import HomeComponent from "@/components/home";
|
||||
|
||||
function Page() {
|
||||
return <HomeComponent/>;
|
||||
return <HomeComponent />;
|
||||
}
|
||||
|
||||
export default Page;
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
import cacheProviderRtl from "@/core/utils/cacheRtl";
|
||||
import {CssBaseline, ThemeProvider} from "@mui/material";
|
||||
import { CssBaseline, ThemeProvider } from "@mui/material";
|
||||
import theme from "@/core/utils/theme";
|
||||
import {AppRouterCacheProvider} from "@mui/material-nextjs/v14-appRouter";
|
||||
import 'react-toastify/dist/ReactToastify.css';
|
||||
import { AppRouterCacheProvider } from "@mui/material-nextjs/v14-appRouter";
|
||||
import "react-toastify/dist/ReactToastify.css";
|
||||
import "^/global.scss";
|
||||
import {ToastContainer} from "react-toastify";
|
||||
import { ToastContainer } from "react-toastify";
|
||||
|
||||
const Template = ({children}) => {
|
||||
const Template = ({ children }) => {
|
||||
return (
|
||||
<AppRouterCacheProvider CacheProvider={cacheProviderRtl} options={{enableCssLayer: true}}>
|
||||
<AppRouterCacheProvider CacheProvider={cacheProviderRtl} options={{ enableCssLayer: true }}>
|
||||
<ThemeProvider theme={theme}>
|
||||
<CssBaseline/>
|
||||
<CssBaseline />
|
||||
{children}
|
||||
<ToastContainer rtl containerId="datatable" closeButton={false}/>
|
||||
<ToastContainer rtl containerId="datatable" closeButton={false} />
|
||||
</ThemeProvider>
|
||||
</AppRouterCacheProvider>
|
||||
)
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
export default Template
|
||||
export default Template;
|
||||
|
||||
Reference in New Issue
Block a user