Skip to content

Commit ff0f626

Browse files
committed
add button for ohtu sandbox
1 parent 2201332 commit ff0f626

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/client/components/ChatV2/ChatV2.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import { SystemPrompt } from './System'
1919
import { AppContext } from '../../util/context'
2020
import { Close, Settings } from '@mui/icons-material'
2121
import { SettingsModal } from './SettingsModal'
22+
import { Link } from 'react-router-dom'
2223

2324
export const ChatV2 = () => {
2425
const { courseId } = useParams()
@@ -198,7 +199,7 @@ export const ChatV2 = () => {
198199
}}
199200
>
200201
<SettingsModal open={settingsModalOpen} setOpen={setSettingsModalOpen}></SettingsModal>
201-
<Box sx={{ display: 'flex', justifyContent: 'space-between'}}>
202+
<Box sx={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center'}}>
202203

203204
<Box sx={{ display: 'flex', gap: '1rem' }}>
204205
{disclaimerInfo && <Disclaimer disclaimer={disclaimerInfo} />}
@@ -208,7 +209,9 @@ export const ChatV2 = () => {
208209
<Settings></Settings>
209210
</IconButton>
210211
</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+
}
212215
</Box>
213216
<Box ref={chatContainerRef}>
214217
<Conversation messages={messages} completion={completion} />

0 commit comments

Comments
 (0)