@@ -34,6 +34,7 @@ import EmailButton from './EmailButton'
34
34
import { MenuBookTwoTone , Tune } from '@mui/icons-material'
35
35
import { useChatScroll } from '../../hooks/useChatScroll'
36
36
import { TestUseInfoV2 } from './TestUseInfo'
37
+ import Footer from '../Footer'
37
38
38
39
function useLocalStorageStateWithURLDefault ( key : string , defaultValue : string , urlKey : string ) {
39
40
const [ value , setValue ] = useLocalStorageState ( key , defaultValue )
@@ -366,7 +367,6 @@ export const ChatV2 = () => {
366
367
sx = { { } }
367
368
course = { course }
368
369
handleReset = { handleReset }
369
- user = { user }
370
370
t = { t }
371
371
setSettingsModalOpen = { setSettingsModalOpen }
372
372
setDisclaimerStatus = { setDisclaimerStatus }
@@ -381,7 +381,6 @@ export const ChatV2 = () => {
381
381
sx = { { display : { xs : 'none' , lg : 'block' } , position : 'sticky' , bottom : '0px' } }
382
382
course = { course }
383
383
handleReset = { handleReset }
384
- user = { user }
385
384
t = { t }
386
385
setSettingsModalOpen = { setSettingsModalOpen }
387
386
setDisclaimerStatus = { setDisclaimerStatus }
@@ -596,7 +595,6 @@ const LeftMenu = ({
596
595
sx,
597
596
course,
598
597
handleReset,
599
- user,
600
598
t,
601
599
setSettingsModalOpen,
602
600
setDisclaimerStatus,
@@ -607,32 +605,34 @@ const LeftMenu = ({
607
605
messages,
608
606
} ) => {
609
607
return (
610
- < Box sx = { sx } >
611
- < Box
612
- sx = { {
613
- flex : 1 ,
614
- minWidth : 300 ,
615
- maxWidth : { xs : 300 , md : 400 } ,
616
- position : 'relative' ,
617
- height : '100%' ,
618
- borderRight : '1px solid rgba(0, 0, 0, 0.12)' ,
619
- } }
620
- >
621
- < Box sx = { { position : 'sticky' , top : 70 , padding : '2rem 1.5rem' } } >
622
- { course && < ChatInfo course = { course } /> }
623
- < Box sx = { { display : 'flex' , flexDirection : 'column' , gap : '0.6rem' , mb : '2rem' } } >
624
- < OutlineButtonBlack startIcon = { < RestartAltIcon /> } onClick = { handleReset } id = "empty-conversation-button" >
625
- { t ( 'chat:emptyConversation' ) }
626
- </ OutlineButtonBlack >
627
-
628
- < EmailButton messages = { messages } disabled = { ! messages ?. length } />
629
- < OutlineButtonBlack startIcon = { < Tune /> } onClick = { ( ) => setSettingsModalOpen ( true ) } id = "settings-button" >
630
- { t ( 'chat:settings' ) }
631
- </ OutlineButtonBlack >
632
- < OutlineButtonBlack startIcon = { < HelpIcon /> } onClick = { ( ) => setDisclaimerStatus ( true ) } id = "help-button" >
633
- { t ( 'info:title' ) }
634
- </ OutlineButtonBlack >
635
- </ Box >
608
+ < Box
609
+ sx = { {
610
+ flex : 1 ,
611
+ minWidth : 300 ,
612
+ maxWidth : { xs : 300 , md : 400 } ,
613
+ position : 'relative' ,
614
+ height : '100vh' ,
615
+ borderRight : '1px solid rgba(0, 0, 0, 0.12)' ,
616
+ paddingTop : '4rem' ,
617
+
618
+ display : 'flex' ,
619
+ flexDirection : 'column' ,
620
+ } }
621
+ >
622
+ < Box px = "1rem" >
623
+ { course && < ChatInfo course = { course } /> }
624
+ < Box sx = { { display : 'flex' , flexDirection : 'column' , gap : '0.6rem' , mb : '2rem' } } >
625
+ < OutlineButtonBlack startIcon = { < RestartAltIcon /> } onClick = { handleReset } id = "empty-conversation-button" >
626
+ { t ( 'chat:emptyConversation' ) }
627
+ </ OutlineButtonBlack >
628
+
629
+ < EmailButton messages = { messages } disabled = { ! messages ?. length } />
630
+ < OutlineButtonBlack startIcon = { < Tune /> } onClick = { ( ) => setSettingsModalOpen ( true ) } id = "settings-button" >
631
+ { t ( 'chat:settings' ) }
632
+ </ OutlineButtonBlack >
633
+ < OutlineButtonBlack startIcon = { < HelpIcon /> } onClick = { ( ) => setDisclaimerStatus ( true ) } id = "help-button" >
634
+ { t ( 'info:title' ) }
635
+ </ OutlineButtonBlack >
636
636
{ course && showRagSelector && (
637
637
< >
638
638
< Typography variant = "h6" sx = { { mb : 1 , display : 'flex' , gap : 1 , alignItems : 'center' } } fontWeight = "bold" >
@@ -646,7 +646,8 @@ const LeftMenu = ({
646
646
</ >
647
647
) }
648
648
</ Box >
649
- </ Box > { ' ' }
649
+ </ Box >
650
+ < Footer />
650
651
</ Box >
651
652
)
652
653
}
0 commit comments