added history item to tables

This commit is contained in:
2025-11-26 15:23:29 +03:30
parent 71032efe8a
commit 88b1f02a91
2 changed files with 3 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ import TabPanel from "@/core/components/TabPanel";
const ConfirmRoadSafetyFormContext = ({ row, data, rowId, mutate, handleClose }) => {
const [tabState, setTabState] = useState(0);
console.log("DATA: ", data);
const handleChangeTab = (event, newValue) => {
setTabState(newValue);

View File

@@ -2,10 +2,12 @@ import { Box } from "@mui/material";
import ConfirmRoadSafetyForm from "./ConfirmRoadSafetyForm";
import ConfirmVerifyRoadSafetyForm from "./ConfirmVerifyRoadSafetyForm";
import ConfirmVerifyLicenseForm from "./ConfirmVerifyLicenseForm";
import History from "./History";
const RowActions = ({ row, mutate }) => {
return (
<Box sx={{ display: "flex", gap: 1 }}>
<History rowId={row.original.id} />
{row.original.state_id == 3 && (
<ConfirmRoadSafetyForm row={row} mutate={mutate} rowId={row.getValue("id")} />
)}