Improve technician transaction view

This commit is contained in:
Keannu Bernasol 2024-01-03 17:15:02 +08:00
parent 2d59a775c1
commit 8ef4efb1d9
2 changed files with 19 additions and 4 deletions

View file

@ -67,6 +67,7 @@ export default function EditTransactionModal(props: {
remarks: transaction.data.remarks, remarks: transaction.data.remarks,
}); });
} }
props.setOpen(false);
}, },
}); });

View file

@ -197,9 +197,21 @@ export default function TransactionsListPage() {
> >
{transaction.remarks} {transaction.remarks}
</TableCell> </TableCell>
<TableCell style={{ overflowY: "scroll" }} align="center"> <TableCell style={{}} align="center">
<TableContainer component={Paper}> <TableContainer
<Table sx={{ minWidth: "4rem" }} size="medium"> style={{
maxHeight: "192px",
overflowY: "scroll",
marginTop: "2rem",
}}
component={Paper}
>
<Table
sx={{
minWidth: "4rem",
}}
size="medium"
>
<TableHead> <TableHead>
<TableRow <TableRow
style={{ backgroundColor: colors.header_color }} style={{ backgroundColor: colors.header_color }}
@ -218,7 +230,9 @@ export default function TransactionsListPage() {
</TableCell> </TableCell>
</TableRow> </TableRow>
</TableHead> </TableHead>
<TableBody> <TableBody
sx={{ height: "4px", overflowY: "scroll" }}
>
{transaction.equipments.map((equipment) => ( {transaction.equipments.map((equipment) => (
<TableRow <TableRow
key={equipment.id} key={equipment.id}