@@ -108,7 +108,7 @@ export function ChatList() {
108108 state . currentSessionIndex ,
109109 state . selectSession ,
110110 state . removeSession ,
111- ]
111+ ] ,
112112 ) ;
113113
114114 return (
@@ -134,7 +134,7 @@ function useSubmitHandler() {
134134
135135 const shouldSubmit = ( e : React . KeyboardEvent < HTMLTextAreaElement > ) => {
136136 if ( e . key !== "Enter" ) return false ;
137- if ( e . key === ' Enter' && e . nativeEvent . isComposing ) return false
137+ if ( e . key === " Enter" && e . nativeEvent . isComposing ) return false ;
138138 return (
139139 ( config . submitKey === SubmitKey . AltEnter && e . altKey ) ||
140140 ( config . submitKey === SubmitKey . CtrlEnter && e . ctrlKey ) ||
@@ -202,7 +202,7 @@ export function Chat(props: {
202202 setPromptHints ( promptStore . search ( text ) ) ;
203203 } ,
204204 100 ,
205- { leading : true , trailing : true }
205+ { leading : true , trailing : true } ,
206206 ) ;
207207
208208 const onPromptSelect = ( prompt : Prompt ) => {
@@ -216,7 +216,7 @@ export function Chat(props: {
216216 if ( ! dom ) return ;
217217 const paddingBottomNum : number = parseInt (
218218 window . getComputedStyle ( dom ) . paddingBottom ,
219- 10
219+ 10 ,
220220 ) ;
221221 dom . scrollTop = dom . scrollHeight - dom . offsetHeight + paddingBottomNum ;
222222 } ;
@@ -304,7 +304,7 @@ export function Chat(props: {
304304 preview : true ,
305305 } ,
306306 ]
307- : [ ]
307+ : [ ] ,
308308 )
309309 . concat (
310310 userInput . length > 0
@@ -316,7 +316,7 @@ export function Chat(props: {
316316 preview : true ,
317317 } ,
318318 ]
319- : [ ]
319+ : [ ] ,
320320 ) ;
321321
322322 // auto scroll
@@ -354,7 +354,7 @@ export function Chat(props: {
354354 const newTopic = prompt ( Locale . Chat . Rename , session . topic ) ;
355355 if ( newTopic && newTopic !== session . topic ) {
356356 chatStore . updateCurrentSession (
357- ( session ) => ( session . topic = newTopic ! )
357+ ( session ) => ( session . topic = newTopic ! ) ,
358358 ) ;
359359 }
360360 } }
@@ -603,7 +603,7 @@ export function Home() {
603603 state . newSession ,
604604 state . currentSessionIndex ,
605605 state . removeSession ,
606- ]
606+ ] ,
607607 ) ;
608608 const loading = ! useHasHydrated ( ) ;
609609 const [ showSideBar , setShowSideBar ] = useState ( true ) ;
0 commit comments