Even more code styling things

This commit is contained in:
2023-07-31 12:41:19 +03:00
parent 9eb30d2066
commit 9b35a54ae9
51 changed files with 127 additions and 113 deletions

View File

@ -13,17 +13,17 @@ const useRemoveAnnouncement = (resolve: () => void) => {
'DELETE',
true,
isRemoveAnnouncementResponse,
processRemoveAnnouncement
processRemoveAnnouncement,
)
const doSendWithClose = useCallback(async (id: number) => {
const res = await doSend({}, {
body: JSON.stringify({
id
id,
}),
headers: {
'Content-Type': 'application/json'
}
'Content-Type': 'application/json',
},
})
if (res) {