push rasad front on new repo

This commit is contained in:
2026-01-18 14:32:49 +03:30
commit 4fe6e70525
2139 changed files with 303150 additions and 0 deletions

View File

@@ -0,0 +1,118 @@
// import { Button, IconButton, Popover, Tooltip } from "@mui/material";
// import { useContext, useState } from "react";
// import TuneIcon from "@mui/icons-material/Tune";
// import { Grid } from "../../../../components/grid/Grid";
// import DeleteIcon from "@mui/icons-material/Delete";
// import { CLOSE_MODAL, OPEN_MODAL } from "../../../../lib/redux/slices/appSlice";
// import { slaughterDeleteDailyListService } from "../../services/slaughter-add-daily-list";
// import { useDispatch } from "react-redux";
// import { AppContext } from "../../../../contexts/AppContext";
// export const SlaughterDailyListOperation = ({ item, updateTable }) => {
// const dispatch = useDispatch();
// const [anchorEl, setAnchorEl] = useState(null);
// const handleClick = (event) => {
// setAnchorEl(event.currentTarget);
// };
// const handleClose = () => {
// setAnchorEl(null);
// };
// const open = Boolean(anchorEl);
// const id = open ? "popover" : undefined;
// const [openNotif] = useContext(AppContext);
// return (
// <div>
// <IconButton
// aria-describedby={id}
// variant="contained"
// color="primary"
// onClick={handleClick}
// >
// <TuneIcon />
// </IconButton>
// <Popover
// anchorOrigin={{
// vertical: "top",
// horizontal: "center",
// }}
// transformOrigin={{
// vertical: "top",
// horizontal: "left",
// }}
// id={id}
// open={open}
// anchorEl={anchorEl}
// onClose={handleClose}
// >
// <div style={{ padding: "20px" }}>
// <Grid container direction="column">
// <Tooltip title={"حذف"} placement="left-start">
// <IconButton
// aria-label="delete"
// color="error"
// onClick={() => {
// handleClose();
// dispatch(
// OPEN_MODAL({
// title: "آیا مطمئن هستید؟",
// content: (
// <Grid container spacing={2}>
// <Grid item>
// <Button
// variant="contained"
// color="error"
// onClick={() => {
// dispatch(
// slaughterDeleteDailyListService(item?.key)
// ).then((r) => {
// if (r.payload.error) {
// openNotif({
// vertical: "top",
// horizontal: "center",
// msg: r.payload.error,
// severity: "error",
// });
// } else {
// updateTable();
// dispatch(CLOSE_MODAL());
// openNotif({
// vertical: "top",
// horizontal: "center",
// msg: r.payload.data.result,
// severity: "success",
// });
// }
// });
// }}
// >
// تایید
// </Button>
// </Grid>
// <Grid item>
// <Button
// onClick={() => {
// dispatch(CLOSE_MODAL());
// }}
// >
// لغو
// </Button>
// </Grid>
// </Grid>
// ),
// })
// );
// }}
// >
// <DeleteIcon />
// </IconButton>
// </Tooltip>
// </Grid>
// </div>
// </Popover>
// </div>
// );
// };