From a9065068f70d89d99519d38b8c3595c731d69f07 Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 19 Aug 2023 22:56:54 +0600 Subject: [PATCH] fix creating classes --- .env.development | 2 +- .env.production | 2 +- src/entities/room/ui/RoomCard.tsx | 2 +- src/entities/user/api/addUser.ts | 25 ------------------- src/entities/user/api/useAddUser.ts | 34 ++++++++++++++++++++++++++ src/features/createRoom/model/index.ts | 4 +-- src/pages/Join/Join.tsx | 7 ++++++ 7 files changed, 46 insertions(+), 30 deletions(-) delete mode 100644 src/entities/user/api/addUser.ts create mode 100644 src/entities/user/api/useAddUser.ts diff --git a/.env.development b/.env.development index 4330e9d..49882ac 100644 --- a/.env.development +++ b/.env.development @@ -2,4 +2,4 @@ VITE_AUTH0_DOMAIN="dev-txpc5harm481cb6o.us.auth0.com" VITE_AUTH0_CLIENT_ID="BOU97TMrp85ftAnrXSLTiYYiuifp9jfz" VITE_API='https://network-class-server.ru' VITE_WS_API='wss://network-class-server.ru' -VITE_VIDEOSDK_HREF='' \ No newline at end of file +VITE_VIDEOSDK_APP='http://localhost:3000/react-rtc-demo' \ No newline at end of file diff --git a/.env.production b/.env.production index f31acec..169fb1e 100644 --- a/.env.production +++ b/.env.production @@ -2,4 +2,4 @@ VITE_AUTH0_DOMAIN="dev-txpc5harm481cb6o.us.auth0.com" VITE_AUTH0_CLIENT_ID="fOB3CWsgCnNLI5q7OMWe9DfWaAXOme2o" VITE_API='https://network-class-server.ru' VITE_WS_API='wss://network-class-server.ru' -VITE_VIDEOSDK_HREF='' \ No newline at end of file +VITE_VIDEOSDK_APP='https://network-class-videosdk-client.pages.dev' \ No newline at end of file diff --git a/src/entities/room/ui/RoomCard.tsx b/src/entities/room/ui/RoomCard.tsx index bc7919a..62fc3f4 100644 --- a/src/entities/room/ui/RoomCard.tsx +++ b/src/entities/room/ui/RoomCard.tsx @@ -101,7 +101,7 @@ const RoomCard: React.FC = ({ room }) => { недоступен )} - +