bank_buttons
This commit is contained in:
@@ -2,12 +2,15 @@ import {Box} from "@mui/material";
|
||||
import UpdateForm from "@/components/dashboard/bank-management/Form/Update";
|
||||
|
||||
const TableRow = ({row, mutate}) => {
|
||||
console.log(row.original.bank_status)
|
||||
return (
|
||||
<Box sx={{display: "flex", flexWrap: "nowrap", gap: "8px"}}>
|
||||
<UpdateForm
|
||||
rowId={row.getValue("id")}
|
||||
mutate={mutate}
|
||||
/>
|
||||
{row.original.bank_status == 0 && (
|
||||
<UpdateForm
|
||||
rowId={row.getValue("id")}
|
||||
mutate={mutate}
|
||||
/>
|
||||
)}
|
||||
</Box>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user