File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/client/components/ChatV2 Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import { SystemPrompt } from './System'
19
19
import { AppContext } from '../../util/context'
20
20
import { Close , Settings } from '@mui/icons-material'
21
21
import { SettingsModal } from './SettingsModal'
22
+ import { Link } from 'react-router-dom'
22
23
23
24
export const ChatV2 = ( ) => {
24
25
const { courseId } = useParams ( )
@@ -198,7 +199,7 @@ export const ChatV2 = () => {
198
199
} }
199
200
>
200
201
< SettingsModal open = { settingsModalOpen } setOpen = { setSettingsModalOpen } > </ SettingsModal >
201
- < Box sx = { { display : 'flex' , justifyContent : 'space-between' } } >
202
+ < Box sx = { { display : 'flex' , justifyContent : 'space-between' , alignItems : 'center' } } >
202
203
203
204
< Box sx = { { display : 'flex' , gap : '1rem' } } >
204
205
{ disclaimerInfo && < Disclaimer disclaimer = { disclaimerInfo } /> }
@@ -208,7 +209,9 @@ export const ChatV2 = () => {
208
209
< Settings > </ Settings >
209
210
</ IconButton >
210
211
</ Box >
211
- < Button variant = 'outlined' size = 'small' > Ohtu sandbox</ Button >
212
+ {
213
+ courseId ? < Link to = { '/v2' } > CurreChat</ Link > : < Link to = { '/v2/sandbox' } > Ohtu Sandbox</ Link >
214
+ }
212
215
</ Box >
213
216
< Box ref = { chatContainerRef } >
214
217
< Conversation messages = { messages } completion = { completion } />
You can’t perform that action at this time.
0 commit comments