This commit is contained in:
1 parent
f09bc44d63
commit
d366882f6b
45 files changed
+1068
-890
No files matched your search
@@ -1,7 +1,6 @@
|
||||
import { Table } from "react-bootstrap";
|
||||
import PizzaOrderRow from "./PizzaOrderRow";
|
||||
import { updatePizzaFee } from "../api/PizzaDayApi";
|
||||
import { PizzaDayState, PizzaOrder, PizzaVariant } from "../../../types";
|
||||
import { PizzaDayState, PizzaOrder, PizzaVariant, updatePizzaFee } from "../../../types";
|
||||
|
||||
type Props = {
|
||||
state: PizzaDayState,
|
||||
@@ -12,7 +11,7 @@ type Props = {
|
||||
|
||||
export default function PizzaOrderList({ state, orders, onDelete, creator }: Readonly<Props>) {
|
||||
const saveFees = async (customer: string, text?: string, price?: number) => {
|
||||
await updatePizzaFee(customer, text, price);
|
||||
await updatePizzaFee({ body: { login: customer, text, price } });
|
||||
}
|
||||
|
||||
if (!orders?.length) {
|
||||
|
||||
Reference in new issue
Block a user