From c1d817bfe2c28b2ac5c54dbd139d47797f3fb5ed Mon Sep 17 00:00:00 2001 From: Arnab Date: Mon, 23 Sep 2024 00:07:51 -0500 Subject: [PATCH] chatbot-ui-fixed --- legal-ai/src/App.js | 4 ++-- legal-ai/src/components/Home.js | 2 +- legal-ai/src/components/Messages.js | 4 ++-- legal-ai/src/components/chatbot.js | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/legal-ai/src/App.js b/legal-ai/src/App.js index 74b8aba..4ecf8af 100644 --- a/legal-ai/src/App.js +++ b/legal-ai/src/App.js @@ -24,12 +24,12 @@ function App() { }; return ( -
+
-
+
{activeSection === "home" && } {activeSection === "about" && } {activeSection === "chatbot" && } diff --git a/legal-ai/src/components/Home.js b/legal-ai/src/components/Home.js index f2ddb05..529d486 100644 --- a/legal-ai/src/components/Home.js +++ b/legal-ai/src/components/Home.js @@ -53,7 +53,7 @@ const Home = ({ setActiveSection, language }) => { > {displayedText} */} -
+
setActiveSection("questions")}> {translations[language].clickForChat}
diff --git a/legal-ai/src/components/Messages.js b/legal-ai/src/components/Messages.js index 73f97b3..7d8fd0d 100644 --- a/legal-ai/src/components/Messages.js +++ b/legal-ai/src/components/Messages.js @@ -7,7 +7,7 @@ const Messages = ({ messages }) => { return (
{messages.length === 0 ? ( -

Hi! I'm Mike, your AI law assistant, how can I help you today?

+

Hi! I'm Mike, your AI law assistant, how can I help you today?

) : ( messages.map((msg, index) => (
{ className={`flex flex-col ${msg.sender === 'bot' ? 'items-start' : 'items-end'}`} >

- {msg.sender === 'bot' ? 'LegalAI' : 'You'} + {msg.sender === 'bot' ? 'Mike' : 'You'}

{ }, [messages]); return ( -
+
logo