build fix for sure for sure
This commit is contained in:
parent
5b7fd05a02
commit
b9137c2a10
3 changed files with 4 additions and 9 deletions
|
@ -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]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue