linter, linter, let me work

This commit is contained in:
tonyrewin 2022-11-23 09:01:38 +03:00
parent 978eb1e4d9
commit 8cc0fd1359

View File

@ -60,6 +60,15 @@ const postMessage = async (msg: string) => {
return response.data.createComment
}
const handleGetChats = async () => {
try {
const response = await loadChats()
setChats(response as unknown as Chat[])
} catch (error) {
console.log(error)
}
}
export const InboxView = () => {
const [messages, setMessages] = createSignal([])
const [authors, setAuthors] = createSignal<Author[]>([])
@ -136,15 +145,6 @@ export const InboxView = () => {
formParent.dataset.replicatedValue = postMessageText()
})
const handleGetChats = async () => {
try {
const response = await loadChats()
setChats(response as unknown as Chat[])
} catch (error) {
console.log(error)
}
}
return (
<div class="messages container">
<div class="row">