From e45c9326ed15260dd6bf3e85f41d35781cc07f05 Mon Sep 17 00:00:00 2001 From: SlimusMinus Date: Wed, 12 Aug 2026 00:38:04 +0300 Subject: [PATCH] fixed code v2 --- .env | 3 +- public/index.html | 3 +- src/components/profile/ProfileFormFields.jsx | 3 +- src/components/profile/ProfileModal.jsx | 12 ++-- src/config/authConstants.js | 2 +- src/context/AuthContext.jsx | 10 ++- src/hooks/useChatSocket.js | 56 +++------------ src/hooks/useDeleteChat.js | 20 +++++- src/hooks/useStompClient.js | 74 ++++++++++++++++++++ src/hooks/useUnreadSocket.js | 48 +++---------- src/hooks/useUpdateProfile.js | 31 +++++--- src/hooks/useYandexMap.js | 11 +-- src/locales/en.json | 5 +- src/locales/ru.json | 5 +- src/pages/ChatListPage.jsx | 21 +++++- src/pages/ChatPage.jsx | 10 ++- src/stores/activeChatStore.js | 13 +++- src/stores/chatPostStore.js | 10 +++ src/utils/chatDisplay.jsx | 20 ++++++ 19 files changed, 233 insertions(+), 124 deletions(-) create mode 100644 src/hooks/useStompClient.js diff --git a/.env b/.env index e82fbf1..d3abb92 100644 --- a/.env +++ b/.env @@ -1 +1,2 @@ -VITE_YANDEX_GEOCODER_KEY=c2d3c717-a109-4494-8863-7edbc32044e3 \ No newline at end of file +REACT_APP_YANDEX_GEOCODER_KEY=c2d3c717-a109-4494-8863-7edbc32044e3 +REACT_APP_YANDEX_MAPS_KEY=d4696cc8-6a1f-4356-9219-108ac474093b \ No newline at end of file diff --git a/public/index.html b/public/index.html index 9255e80..a633612 100644 --- a/public/index.html +++ b/public/index.html @@ -10,8 +10,7 @@ content="Web site created using create-react-app" /> - - +