edit product route

This commit is contained in:
jurenroy 2023-02-27 14:12:25 +08:00
parent a21adacab1
commit 88049d0367
5 changed files with 152 additions and 14 deletions

View file

@ -22,7 +22,7 @@ export default function InventoryInfo(props: ProductInfoProps) {
<TableBody>
{products.map((product) => (
<TableRow key={product.id}>
<TableCell style={{ color: 'white' }}>{product.id}</TableCell>
<TableCell style={{ color: 'white' }}>{product.id.toString().padStart(3, '0')}</TableCell>
<TableCell style={{ color: 'white' }}>{product.name}</TableCell>
<TableCell style={{ color: 'white' }}>{product.stocks}</TableCell>
<TableCell style={{ color: 'white' }}>{product.lastModified}</TableCell>