From 59826a5230094ab813f2b0700cda36015e73c43d Mon Sep 17 00:00:00 2001 From: MostlyK <135974627+MostlyKIGuess@users.noreply.github.com> Date: Fri, 28 Jun 2024 19:18:50 +0530 Subject: [PATCH] Creating Room Update, Inform for Service on Gen AI --- frontend/src/pages/create/[roomId].js | 4 ++-- frontend/src/pages/index.tsx | 18 ++++++++++++++++-- frontend/src/pages/join/[roomId].js | 4 ++-- 3 files changed, 20 insertions(+), 6 deletions(-) diff --git a/frontend/src/pages/create/[roomId].js b/frontend/src/pages/create/[roomId].js index fbce027..fd0b8cb 100644 --- a/frontend/src/pages/create/[roomId].js +++ b/frontend/src/pages/create/[roomId].js @@ -201,8 +201,8 @@ const Room = () => { } { inspirationImage && ( -
- Inspiration +
+ Service Not Available Right Now, try again in 2 mins
)} { + if (creatingRoom) { + return; + } + setCreatingRoom(true); if (type === 'create') { const response = await axios.post(`${API_URL}/api/rooms`, { creator }); const newRoomId = response.data.room._id; @@ -55,11 +61,13 @@ export default function Homes() { } } }; + + return ( - Welcome to emagazineK, a place where people can collaborate with their friends and make flip book animation while chatting. Please make a room to start. + Welcome to emagazineK! Here, you can chat with friends and create flip book animations together. Start your room now and bring your ideas to life! + {/* Welcome to emagazineK, a place where people can collaborate with their friends and make flip book animation while chatting. Please make a room to start. */} @@ -97,6 +106,11 @@ export default function Homes() { Create Room Join Room + {creatingRoom && ( + + Creating room...Pls wait + + )} {type === 'create' && ( {
} { inspirationImage && ( -
- Inspiration +
+ Service Not Available Right Now, try again in 2 mins
)}