648de563 by RSA

fix

1 parent e203d134
......@@ -23,6 +23,8 @@ function App() {
// clear chats
function clearChat(){
setChatLog([]);
setChatInput("");
setStartedInteraction(false);
}
function getEngines(){
......@@ -113,7 +115,7 @@ function App() {
}
}
const [startedInteraction, setStartedInteraction] = useState(false);
return (
<div className="App">
<SideMenu
......@@ -129,6 +131,8 @@ function App() {
chatInput={chatInput}
chatLog={chatLog}
setChatInput={setChatInput}
startedInteraction={startedInteraction}
setStartedInteraction={setStartedInteraction}
handleSubmit={handleSubmit} />
</div>
);
......
import React, { useState } from "react";
import SuggestedOptions from './suggestedOptions'
const ChatBox = ({chatLog, setChatInput, handleSubmit, chatInput}) => {
const [startedInteraction, setStartedInteraction] = useState(false);
const ChatBox = ({chatLog, setChatInput, handleSubmit, chatInput, startedInteraction, setStartedInteraction}) => {
return (
<section className="chatbox">
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!