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 { composeOsmAddressURL, processOsmAddress } from '../../api/osmAddress'
|
||||
import { isOsmAddressResponse } from '../../api/osmAddress/types'
|
||||
|
||||
const useOsmAddresses = (addressPosition: LatLng) =>
|
||||
const useOsmAddresses = (addressPosition: LatLng) => (
|
||||
useFetch(
|
||||
composeOsmAddressURL(addressPosition),
|
||||
'GET',
|
||||
@ -13,5 +13,6 @@ const useOsmAddresses = (addressPosition: LatLng) =>
|
||||
processOsmAddress,
|
||||
''
|
||||
)
|
||||
)
|
||||
|
||||
export default useOsmAddresses
|
||||
|
Reference in New Issue
Block a user