Feature/toll house
This commit is contained in:
13
src/app/(withAuth)/infrastructure/layout.js
Normal file
13
src/app/(withAuth)/infrastructure/layout.js
Normal file
@@ -0,0 +1,13 @@
|
||||
import HeaderWithLogo from "@/components/layouts/dashboard/headerWithLogo";
|
||||
import HeaderWithSidebar from "@/components/layouts/dashboard/headerWithSidebar";
|
||||
import { Stack } from "@mui/material";
|
||||
|
||||
const Layout = ({ children }) => {
|
||||
return (
|
||||
<Stack sx={{ width: "100%", height: "100%" }}>
|
||||
<HeaderWithLogo />
|
||||
<HeaderWithSidebar>{children}</HeaderWithSidebar>
|
||||
</Stack>
|
||||
);
|
||||
};
|
||||
export default Layout;
|
||||
7
src/app/(withAuth)/infrastructure/toll-house/loading.jsx
Normal file
7
src/app/(withAuth)/infrastructure/toll-house/loading.jsx
Normal file
@@ -0,0 +1,7 @@
|
||||
"use client";
|
||||
import PageLoading from "@/core/components/PageLoading";
|
||||
|
||||
const Loading = () => {
|
||||
return <PageLoading />;
|
||||
};
|
||||
export default Loading;
|
||||
16
src/app/(withAuth)/infrastructure/toll-house/page.js
Normal file
16
src/app/(withAuth)/infrastructure/toll-house/page.js
Normal file
@@ -0,0 +1,16 @@
|
||||
import WithPermission from "@/core/middlewares/withPermission";
|
||||
import TollHousePage from "@/components/infrastructure/tollHouse";
|
||||
|
||||
export const metadata = {
|
||||
title: "فهرست راهدارخانه ها",
|
||||
};
|
||||
|
||||
const Page = () => {
|
||||
return (
|
||||
<WithPermission permission_name={["show-tollhouse", "show-tollhouse-province"]}>
|
||||
<TollHousePage />
|
||||
</WithPermission>
|
||||
);
|
||||
};
|
||||
|
||||
export default Page;
|
||||
Reference in New Issue
Block a user