Úpravy pro linter
This commit is contained in:
parent
07550e7f83
commit
179e27f8af
@ -125,29 +125,29 @@ function App() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const addToCart = async () => {
|
// const addToCart = async () => {
|
||||||
// TODO aktuálně nefunkční - nedokážeme poslat PHPSESSIONID cookie
|
// TODO aktuálně nefunkční - nedokážeme poslat PHPSESSIONID cookie
|
||||||
// if (data?.pizzaDay?.orders) {
|
// if (data?.pizzaDay?.orders) {
|
||||||
// for (const order of data?.pizzaDay?.orders) {
|
// for (const order of data?.pizzaDay?.orders) {
|
||||||
// for (const pizzaOrder of order.pizzaList) {
|
// for (const pizzaOrder of order.pizzaList) {
|
||||||
// const url = 'https://www.pizzachefie.cz/pridat.html';
|
// const url = 'https://www.pizzachefie.cz/pridat.html';
|
||||||
// const payload = new URLSearchParams();
|
// const payload = new URLSearchParams();
|
||||||
// payload.append('varId', pizzaOrder.varId.toString());
|
// payload.append('varId', pizzaOrder.varId.toString());
|
||||||
// await fetch(url, {
|
// await fetch(url, {
|
||||||
// method: "POST",
|
// method: "POST",
|
||||||
// mode: "no-cors",
|
// mode: "no-cors",
|
||||||
// cache: "no-cache",
|
// cache: "no-cache",
|
||||||
// credentials: "same-origin",
|
// credentials: "same-origin",
|
||||||
// headers: {
|
// headers: {
|
||||||
// 'Content-Type': 'application/x-www-form-urlencoded',
|
// 'Content-Type': 'application/x-www-form-urlencoded',
|
||||||
// },
|
// },
|
||||||
// body: payload,
|
// body: payload,
|
||||||
// })
|
// })
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
// // TODO otevřít košík v nové záložce
|
// // TODO otevřít košík v nové záložce
|
||||||
// }
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
const renderFoodTable = (name, food) => {
|
const renderFoodTable = (name, food) => {
|
||||||
return <Col md={12} lg={4}>
|
return <Col md={12} lg={4}>
|
||||||
@ -174,7 +174,7 @@ function App() {
|
|||||||
return <div>Načítám data...</div>
|
return <div>Načítám data...</div>
|
||||||
}
|
}
|
||||||
|
|
||||||
const noOrders = data?.pizzaDay?.orders?.length == 0;
|
const noOrders = data?.pizzaDay?.orders?.length === 0;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user