I'm working on a project with three columns and I want to include a column for removing each row. Is it possible to add a "removing" column on the right? If so, how can I go about doing it?
VIEW CODESANDBOX: HERE
const CustomTableRow = ({ row, index, arrayHelpers }) => {
return (
<>
<TableRow
sx={{
"th, td": { border: 0 }
}}
>
<TableCell component="th" scope="row">
<FastField
name={`rows.${index}.attribute`}
component={TextField}
fullWidth
/>
</TableCell>
<TableCell>
<FastField
name={`rows.${index}.ruleId`}
component={TextField}
fullWidth
/>
</TableCell>
</TableRow>
<TableRow>
<TableCell colSpan={2}>
<FastField
name={`rows.${index}.thirdRow`}
component={TextField}
fullWidth
/>
</TableCell>
</TableRow>
{/* <TableCell align="right">
<IconButton
aria-label="delete"
onClick={() => arrayHelpers.remove(index)}
size="small"
>
<RemoveCircleOutlineIcon sx={{ fontSize: "1.25rem" }} />
</IconButton>
</TableCell> */}
</>
);
};