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

@@ -1,7 +1,8 @@
import React from "react";
import { Table } from "react-bootstrap";
import { Order } from "../Types";
export default function OrderList({ orders }: { orders: Order[] }) {
export default function PizzaOrderList({ orders }: { orders: Order[] }) {
return <Table striped bordered hover>
<thead>
<tr>
@@ -12,7 +13,7 @@ export default function OrderList({ orders }: { orders: Order[] }) {
</thead>
<tbody>
{orders.map(order => <tr>
<td>{order.pizzaList[0].name}, {order.pizzaList[0].size}</td>
<td>{order.pizzaList[0].name}</td>
<td>{order.customer}</td>
<td>{order.totalPrice}</td>
</tr>)}