build fix for sure for sure

This commit is contained in:
YasinOnm08 2024-10-09 14:22:31 +02:00
parent 5b7fd05a02
commit b9137c2a10
3 changed files with 4 additions and 9 deletions

View file

@ -31,7 +31,7 @@ const setGlobalState = (newState: GlobalChatHistory): void => {
listeners.forEach((listener) => listener(globalChatHistory))
}
export const useChatHistory = (): [GlobalChatHistory, (newState:GlobalChatHistory) => void, (index:number)=>void, (messageIndex: number, newContent:string)=> void] => {
export const useChatHistory = (): [GlobalChatHistory, (index:number)=>void, (newState:GlobalChatHistory) => void,(messageIndex: number, newContent:string)=> void] => {
const [state, setState] = useState<GlobalChatHistory>(globalChatHistory)
useEffect(() => {
@ -65,5 +65,5 @@ export const useChatHistory = (): [GlobalChatHistory, (newState:GlobalChatHistor
}
}
return [state, setGlobalState, setSelectedIndex, updateMessage]
return [state, setSelectedIndex, setGlobalState, updateMessage]
}