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 useFetch from './useFetch'
|
||||
import { composeTrashboxURL } from '../../api/trashbox'
|
||||
import { isTrashboxResponse } from '../../api/trashbox/types'
|
||||
|
||||
const useTrashboxes = (position: LatLng) =>
|
||||
const useTrashboxes = (position: LatLng) => (
|
||||
useFetch(
|
||||
composeTrashboxURL(position),
|
||||
'GET',
|
||||
@ -13,6 +13,6 @@ const useTrashboxes = (position: LatLng) =>
|
||||
(data) => data,
|
||||
[]
|
||||
)
|
||||
|
||||
)
|
||||
|
||||
export default useTrashboxes
|
||||
|
Reference in New Issue
Block a user