From 2afae5a634dd6b75ab0ca0e7ef12730d7f6ce3b5 Mon Sep 17 00:00:00 2001
From: Avanish Singh <79073722+aaviix@users.noreply.github.com>
Date: Sun, 10 Dec 2023 16:40:17 +0100
Subject: [PATCH] Add files via upload

---
 frontend-react/src/components/ChatbotComponent.js | 8 ++++----
 frontend-react/src/components/InputSection.js     | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/frontend-react/src/components/ChatbotComponent.js b/frontend-react/src/components/ChatbotComponent.js
index 370a9d3..bbe8727 100644
--- a/frontend-react/src/components/ChatbotComponent.js
+++ b/frontend-react/src/components/ChatbotComponent.js
@@ -12,7 +12,7 @@ const ChatbotComponent = () => {
     ])
 
     const greetingMessage = {
-        info: "Hey, Welcome to FoodWhizz, What would you like to have today? Say Hey to start...",
+        info: "Hey, Welcome to FoodWhizz, What would you like to have today? Enter name of food you like to make today",
         type: "left",
         name: "FoodWhizz"
       };
@@ -28,9 +28,9 @@ const ChatbotComponent = () => {
         const newUserMessage = createMessage(value_info, value_type, "User");
         setMessages([...messages, newUserMessage]);
         
-        socket.emit('Client message',value_info)
+        socket.emit('client message',value_info)
         socket.on('bot-message',(data) =>{
-            const newBotMessage = createMessage(data, "left", "Bot");
+            const newBotMessage = createMessage(data, "left", "FoodWhizz");
             setMessages([...messages,newUserMessage,newBotMessage]);
         })
     }
@@ -72,4 +72,4 @@ const ChatbotComponent = () => {
     );
 };
 
-export default ChatbotComponent;
+export default ChatbotComponent;
\ No newline at end of file
diff --git a/frontend-react/src/components/InputSection.js b/frontend-react/src/components/InputSection.js
index 8a183be..1cf7f86 100644
--- a/frontend-react/src/components/InputSection.js
+++ b/frontend-react/src/components/InputSection.js
@@ -23,7 +23,7 @@ const InputSection = (props) => {
 
     return (
         <div className="header_bottom" id="input">
-            <textarea id="input_section" ref={textareaRef} onKeyDown={handleKeyDown} placeholder="say HEY to start" value={value} onChange={event => setValue(event.target.value)}></textarea>
+            <textarea id="input_section" ref={textareaRef} onKeyDown={handleKeyDown} placeholder="Name food you wanna have today" value={value} onChange={event => setValue(event.target.value)}></textarea>
             <button className="send_button" type="submit" id="send" onClick={HandleSend}>Send</button>
         </div>
     );
-- 
GitLab