diff --git a/frontend-react/src/components/ChatbotComponent.js b/frontend-react/src/components/ChatbotComponent.js index 370a9d3db5766ae910c6d6e52e0e401a587fd91a..bbe87278f1b8c682aee0f74ba1d0e9d92f0ba1ae 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 8a183be2117b7601118c127595879f75e5c148fe..1cf7f864412128b7e284f99c47c6f5e1c676a0a7 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> );