From a26865508a21a12c58d4bf94b547644a3867a11f Mon Sep 17 00:00:00 2001
From: VITALY-VORON <142410419+VITALY-VORON@users.noreply.github.com>
Date: Sat, 26 Aug 2023 07:31:19 +0300
Subject: [PATCH] main props
---
src/App.js | 9 ++-------
src/components/City/City.js | 3 ++-
src/components/Main/Main.js | 11 ++++-------
src/components/Tinder/Tinder.js | 4 +++-
4 files changed, 11 insertions(+), 16 deletions(-)
diff --git a/src/App.js b/src/App.js
index ca7553e..5014984 100644
--- a/src/App.js
+++ b/src/App.js
@@ -13,9 +13,6 @@ function App() {
const [cardInfo, setCardInfo] = useState([]);
const [userData, setUserData] = useState({});
- const selectedCity = userData.selectedCity;
- const identification = userData.unique;
-
const handleButtonValue = (value) => {
setIsHidden(true);
setTimeout(() => {
@@ -29,7 +26,6 @@ function App() {
axios.get('https://easytravel.zetcraft.ru/v1/GetAllCards')
.then(response => {
setCardInfo(response.data);
- console.log(cardInfo.length);
})
.catch(error => {
console.error('Error fetching data:', error);
@@ -39,7 +35,6 @@ function App() {
}, []);
useEffect(() => {
- console.log(userData);
// Загрузка userData из localStorage при монтировании компонента
const savedUserData = JSON.parse(localStorage.getItem('userData'));
if (savedUserData) {
@@ -62,7 +57,7 @@ function App() {
content =
break;
case '/main':
- content =
+ content =
break;
case '/city':
content =
@@ -75,7 +70,7 @@ function App() {
return (
- {arrayLength !== 0 ? : content }
+ {arrayLength !== 0 ? : content}
);
}
diff --git a/src/components/City/City.js b/src/components/City/City.js
index f0143bb..d3d90e4 100644
--- a/src/components/City/City.js
+++ b/src/components/City/City.js
@@ -109,7 +109,8 @@ const City = (props) => {