Příprava Pizza Day

This commit is contained in:
2023-06-04 10:50:29 +02:00
parent 24ac5155a5
commit bae7966e5a
10 changed files with 179 additions and 104 deletions

View File

@@ -0,0 +1,22 @@
import React from "react";
import { Table } from "react-bootstrap";
import { Order } from "../Types";
export default function PizzaOrderList({ orders }: { orders: Order[] }) {
return <Table striped bordered hover>
<thead>
<tr>
<th>Pizza</th>
<th>Jméno</th>
<th>Cena ()</th>
</tr>
</thead>
<tbody>
{orders.map(order => <tr>
<td>{order.pizzaList[0].name}</td>
<td>{order.customer}</td>
<td>{order.totalPrice}</td>
</tr>)}
</tbody>
</Table>
}