From 863688941d36bed0db31f1859adda2eb61f0728c Mon Sep 17 00:00:00 2001 From: Martin Berka Date: Mon, 26 Jun 2023 20:05:28 +0200 Subject: [PATCH] =?UTF-8?q?P=C5=99enos=20zm=C4=9Bn?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/App.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/client/src/App.tsx b/client/src/App.tsx index 5cef074..4edbd6f 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -1,10 +1,10 @@ import React, { useContext, useEffect, useMemo, useRef, useState } from 'react'; import 'bootstrap/dist/css/bootstrap.min.css'; import { EVENT_DISCONNECT, EVENT_MESSAGE, SocketContext } from './context/socket'; -import { addPizza, createPizzaDay, deletePizzaDay, finishDelivery, finishOrder, getData, getFood, getPizzy, getQrUrl, lockPizzaDay, removePizza, unlockPizzaDay, updateChoice, updateFoodChoice, updateFoodChoice, updateNote } from './Api'; +import { addPizza, createPizzaDay, deletePizzaDay, finishDelivery, finishOrder, getData, getFood, getPizzy, getQrUrl, lockPizzaDay, removePizza, unlockPizzaDay, updateChoice, updateNote } from './Api'; import { useAuth } from './context/auth'; import Login from './Login'; -import { Locations, ClientData, Pizza, PizzaOrder, State, Order, Food, Restaurants, FoodChoice, FoodChoice } from './Types'; +import { Locations, ClientData, Pizza, PizzaOrder, State, Order, Food, Restaurants, FoodChoice } from './Types'; import { Alert, Button, Col, Form, Row, Table } from 'react-bootstrap'; import Header from './components/Header'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' @@ -32,8 +32,6 @@ function App() { const poznamkaRef = useRef(null); const [foodSelection, setFoodSelection] = useState(); const foodChoiceRef = useRef(null); - const [foodSelection, setFoodSelection] = useState(); - const foodChoiceRef = useRef(null); // Prvotní načtení aktuálního stavu useEffect(() => {