Code styling
Added brackets for const lambdas Converted const lambdas with multiple instructions to functions
This commit is contained in:
@ -4,7 +4,7 @@ import { composeAnnouncementsURL, initialAnnouncements, processAnnouncements } f
|
||||
|
||||
import { isAnnouncementsResponse } from '../../api/announcements/types'
|
||||
|
||||
const useAnnouncements = (filters: FiltersType) =>
|
||||
const useAnnouncements = (filters: FiltersType) => (
|
||||
useFetch(
|
||||
composeAnnouncementsURL(filters),
|
||||
'GET',
|
||||
@ -13,6 +13,6 @@ const useAnnouncements = (filters: FiltersType) =>
|
||||
processAnnouncements,
|
||||
initialAnnouncements
|
||||
)
|
||||
|
||||
)
|
||||
|
||||
export default useAnnouncements
|
||||
|
Reference in New Issue
Block a user