added history item to tables
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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")} />
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user