chore: add all the code from original repo

This commit is contained in:
Riccardo
2024-05-23 16:55:29 +02:00
parent d8f9a215eb
commit 85d66215a7
66 changed files with 16668 additions and 122 deletions

View File

@@ -0,0 +1,26 @@
import { TableCell, TableRow } from '@mui/material';
import { Item } from '../../../../data/types';
interface ItemsTableRowProps {
item: Item;
onClick: (item: Item) => void;
}
export default function ItemsTableRow({ item, onClick }: ItemsTableRowProps) {
return (
<TableRow
sx={{ '& td': { textAlign: 'center' } }}
key={item.id}
onClick={() => onClick(item)}
>
<TableCell>{item.name}</TableCell>
<TableCell>{item.description}</TableCell>
<TableCell>{Number(item.price).toFixed(2)}</TableCell>
<TableCell>{item.currency}</TableCell>
<TableCell>{item.tag}</TableCell>
<TableCell>
{item.createdAt && new Date(item.createdAt).toLocaleDateString()}
</TableCell>
</TableRow>
);
}