Příprava Pizza Day
This commit is contained in:
1 parent
24ac5155a5
commit
bae7966e5a
10 files changed
+179
-104
No files matched your search
@@ -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 (Kč)</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>
|
||||
}
|
||||
Reference in new issue
Block a user