From 28a7175afc010e7df227e1c71a6b212dc430eacc Mon Sep 17 00:00:00 2001 From: ItzCrazyKns Date: Sat, 20 Apr 2024 10:23:56 +0530 Subject: [PATCH] feat(chat): Add loading for ws --- ui/components/ChatWindow.tsx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/ui/components/ChatWindow.tsx b/ui/components/ChatWindow.tsx index 34102c6..94f4f00 100644 --- a/ui/components/ChatWindow.tsx +++ b/ui/components/ChatWindow.tsx @@ -152,7 +152,7 @@ const ChatWindow = () => { sendMessage(message.content); }; - return ( + return ws ? (
{messages.length > 0 ? ( <> @@ -173,7 +173,14 @@ const ChatWindow = () => { /> )}
- ); + ) : ( +
+ +
+ ) }; export default ChatWindow;