Added announcement disposal:

Added ann details button
Added modal shown on its click
Moved trashbox selection there
Added trashboxes mock while testing in restricted area
This commit is contained in:
2023-08-01 18:23:56 +03:00
parent 47fca02858
commit b93ab9794d
15 changed files with 383 additions and 126 deletions

View File

@ -0,0 +1,19 @@
import { API_URL } from '../../config'
import { TrashboxDispose, DisposeResponse } from './types'
const composeDisposeURL = () => (
API_URL + '/announcement/dispose?'
)
const composeDisposeBody = (ann_id: number, trashbox: TrashboxDispose) => (
JSON.stringify({
ann_id,
trashbox,
})
)
const processDispose = (data: DisposeResponse): boolean => {
return data.Success
}
export { composeDisposeURL, composeDisposeBody, processDispose }