Added useSend hook, converted useFetch to use it

Moved useFetch
Related to #19
This commit is contained in:
2023-07-16 00:08:51 +03:00
parent 5b14d75048
commit f4226237ab
10 changed files with 180 additions and 137 deletions

View File

@ -1,4 +1,4 @@
import useFetch from './useFetch'
import { useFetch } from '../'
import { FiltersType } from '../../utils/filters'
import { composeAnnouncementsURL, initialAnnouncements, processAnnouncements } from '../../api/announcements'