scroll app

This commit is contained in:
Amirhossein Mahmoodi
2024-07-13 15:48:27 +03:30
parent 7d864ccf6b
commit 594c551b5c
4 changed files with 15 additions and 12 deletions

View File

@@ -1,14 +1,12 @@
import HeaderWithLogo from "@/components/layouts/dashboard/headerWithLogo";
import HeaderWithSidebar from "@/components/layouts/dashboard/headerWithSidebar";
import { Box, Stack } from "@mui/material";
import { Stack } from "@mui/material";
const Layout = ({ children }) => {
return (
<Stack>
<Stack sx={{ width: '100%', height: '100%' }}>
<HeaderWithLogo />
<Box>
<HeaderWithSidebar>{children}</HeaderWithSidebar>
</Box>
<HeaderWithSidebar>{children}</HeaderWithSidebar>
</Stack>
);
};

View File

@@ -7,7 +7,7 @@ export const metadata = {
export default function RootLayout({ children }) {
return (
<html lang="fa" dir={"rtl"}>
<body style={{ height: "100vh" }}>
<body style={{ height: "100vh", width: '100vw' }}>
<TableSettingProvider>{children}</TableSettingProvider>
</body>
</html>