diff --git a/client/src/App.tsx b/client/src/App.tsx index 0767b65..15ab594 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -125,29 +125,29 @@ function App() { } } - const addToCart = async () => { - // TODO aktuálně nefunkční - nedokážeme poslat PHPSESSIONID cookie - // if (data?.pizzaDay?.orders) { - // for (const order of data?.pizzaDay?.orders) { - // for (const pizzaOrder of order.pizzaList) { - // const url = 'https://www.pizzachefie.cz/pridat.html'; - // const payload = new URLSearchParams(); - // payload.append('varId', pizzaOrder.varId.toString()); - // await fetch(url, { - // method: "POST", - // mode: "no-cors", - // cache: "no-cache", - // credentials: "same-origin", - // headers: { - // 'Content-Type': 'application/x-www-form-urlencoded', - // }, - // body: payload, - // }) - // } - // } - // // TODO otevřít košík v nové záložce - // } - } + // const addToCart = async () => { + // TODO aktuálně nefunkční - nedokážeme poslat PHPSESSIONID cookie + // if (data?.pizzaDay?.orders) { + // for (const order of data?.pizzaDay?.orders) { + // for (const pizzaOrder of order.pizzaList) { + // const url = 'https://www.pizzachefie.cz/pridat.html'; + // const payload = new URLSearchParams(); + // payload.append('varId', pizzaOrder.varId.toString()); + // await fetch(url, { + // method: "POST", + // mode: "no-cors", + // cache: "no-cache", + // credentials: "same-origin", + // headers: { + // 'Content-Type': 'application/x-www-form-urlencoded', + // }, + // body: payload, + // }) + // } + // } + // // TODO otevřít košík v nové záložce + // } + // } const renderFoodTable = (name, food) => { return