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
9589d7fb
authored
2023-02-16 07:07:47 +0000
by
Ryan
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch '26919_chatscreen' into '1DEVT'
26919 chatscreen See merge request
!31
2 parents
1f14a500
648de563
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 @
9589d7f
...
...
@@ -23,6 +23,8 @@ function App() {
// clear chats
function
clearChat
(){
setChatLog
([]);
setChatInput
(
""
);
setStartedInteraction
(
false
);
}
function
getEngines
(){
...
...
@@ -111,7 +113,7 @@ function App() {
}
}
const
[
startedInteraction
,
setStartedInteraction
]
=
useState
(
false
);
return
(
<
div
className
=
"App"
>
<
SideMenu
...
...
@@ -127,6 +129,8 @@ function App() {
chatInput
=
{
chatInput
}
chatLog
=
{
chatLog
}
setChatInput
=
{
setChatInput
}
startedInteraction
=
{
startedInteraction
}
setStartedInteraction
=
{
setStartedInteraction
}
handleSubmit
=
{
handleSubmit
}
/
>
<
/div
>
);
...
...
client/src/ChatBox.js
View file @
9589d7f
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