push rasad front on new repo
This commit is contained in:
67
src/pages/SlaughterHouseVet.js
Normal file
67
src/pages/SlaughterHouseVet.js
Normal file
@@ -0,0 +1,67 @@
|
||||
import { Box, Typography } from "@mui/material";
|
||||
import { Grid } from "../components/grid/Grid";
|
||||
import { SPACING } from "../data/spacing";
|
||||
import {
|
||||
// ROUTE_SLAUGHTER_HOUSE_VET_ARCHIVED_REQUESTS,
|
||||
ROUTE_SLAUGHTER_HOUSE_VET_COMPLAINTS,
|
||||
ROUTE_SLAUGHTER_HOUSE_VET_ENTER_BAR_INFO,
|
||||
ROUTE_SLAUGHTER_HOUSE_VET_NEW_REQUESTS,
|
||||
ROUTE_SLAUGHTER_HOUSE_VET_REQUESTS,
|
||||
} from "../routes/routes";
|
||||
import { useLocation } from "react-router-dom";
|
||||
import { SlaughterHouseVetOperations } from "../features/slaughter-house-vet/components/slaughter-house-vet-operations/SlaughterHouseVetOperations";
|
||||
import { SlaughterHouseVetNewRequests } from "../features/slaughter-house-vet/components/slaughter-house-vet-new-requests/SlaughterHouseVetNewRequests";
|
||||
// import { AvicultureArchivedRequests } from "../features/aviculture/components/aviculture-archived-requests/AvicultureArchivedRequests";
|
||||
import { BackButton } from "../components/back-button/BackButton";
|
||||
import { SlaughterHouseVetComplaints } from "../pages/SlaughterHouseVetComplaints";
|
||||
import { SalughterEnterBarInfo } from "../features/slaughter-house/components/slaughter-enter-bar-info/SlaghterEnterBarInfo";
|
||||
const SlaughterHouseVet = () => {
|
||||
const { pathname } = useLocation();
|
||||
|
||||
return (
|
||||
<>
|
||||
<Box display={"flex"} justifyContent="center">
|
||||
<Grid
|
||||
container
|
||||
direction="column"
|
||||
justifyContent="center"
|
||||
xs={12}
|
||||
sm={12}
|
||||
md={10}
|
||||
lg={10}
|
||||
>
|
||||
{pathname === ROUTE_SLAUGHTER_HOUSE_VET_REQUESTS ? (
|
||||
<Grid justifyContent="center" my={SPACING.MEDIUM}>
|
||||
<Grid>
|
||||
<Typography variant="h6">داشبورد (دامپزشک کشتارگاه)</Typography>
|
||||
</Grid>
|
||||
<SlaughterHouseVetOperations />
|
||||
</Grid>
|
||||
) : (
|
||||
<BackButton />
|
||||
)}
|
||||
<Grid container justifyContent="space-between" gap={SPACING.SMALL}>
|
||||
<Grid xs={12}>
|
||||
{pathname === ROUTE_SLAUGHTER_HOUSE_VET_NEW_REQUESTS && (
|
||||
<SlaughterHouseVetNewRequests />
|
||||
)}
|
||||
|
||||
{pathname === ROUTE_SLAUGHTER_HOUSE_VET_ENTER_BAR_INFO && (
|
||||
<SalughterEnterBarInfo />
|
||||
)}
|
||||
|
||||
{/* {pathname === ROUTE_SLAUGHTER_HOUSE_VET_ARCHIVED_REQUESTS && (
|
||||
<AvicultureArchivedRequests />
|
||||
)} */}
|
||||
|
||||
{pathname === ROUTE_SLAUGHTER_HOUSE_VET_COMPLAINTS && (
|
||||
<SlaughterHouseVetComplaints />
|
||||
)}
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Box>
|
||||
</>
|
||||
);
|
||||
};
|
||||
export default SlaughterHouseVet;
|
||||
Reference in New Issue
Block a user