Merge branch 'ChatGPT' of gitea.r8z.us:stwhite/boxes-fe into ChatGPT

This commit is contained in:
Steve White 2024-10-21 11:03:17 -05:00
commit 67a1b82442
1 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ export default function Boxes({ token }) {
axios.delete(`${process.env.REACT_APP_API_URL}/boxes/${id}`, { axios.delete(`${process.env.REACT_APP_API_URL}/boxes/${id}`, {
headers: { Authorization: `Bearer ${token}` } headers: { Authorization: `Bearer ${token}` }
}).then(() => { }).then(() => {
setBoxes(boxes.filter(box => box.id !== id)); setBoxes(boxes.filter(box => box.ID !== id));
}); });
}; };
@ -53,7 +53,7 @@ export default function Boxes({ token }) {
<Container> <Container>
<TableContainer> <TableContainer>
<Table> <Table size="small">
<TableHead> <TableHead>
<TableRow> <TableRow>
<TableCell>Box Name</TableCell> <TableCell>Box Name</TableCell>