Added address to dispose trashbox request
styling fixes
This commit is contained in:
@ -2,17 +2,16 @@ import { composePoetryURL, initialPoetry, processPoetry } from '../../api/poetry
|
||||
import { Poetry, isPoetryResponse } from '../../api/poetry/types'
|
||||
import useFetch, { UseFetchReturn } from '../useFetch'
|
||||
|
||||
function usePoetry(): UseFetchReturn<Poetry> {
|
||||
return (
|
||||
useFetch(
|
||||
composePoetryURL(),
|
||||
'GET',
|
||||
false,
|
||||
isPoetryResponse,
|
||||
processPoetry,
|
||||
initialPoetry,
|
||||
)
|
||||
const usePoetry = (): UseFetchReturn<Poetry> => (
|
||||
useFetch(
|
||||
composePoetryURL(),
|
||||
'GET',
|
||||
false,
|
||||
isPoetryResponse,
|
||||
processPoetry,
|
||||
initialPoetry,
|
||||
)
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
export default usePoetry
|
||||
|
Reference in New Issue
Block a user