Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Administrator
/
chatgpt.ai-pro.org
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
3
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
648de563
authored
2023-02-16 15:05:58 +0800
by
RSA
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix
1 parent
e203d134
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
client/src/App.js
client/src/ChatBox.js
client/src/App.js
View file @
648de56
...
...
@@ -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
>
);
...
...
client/src/ChatBox.js
View file @
648de56
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"
>
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment