Added address to dispose trashbox request

styling fixes
This commit is contained in:
2023-08-08 19:20:00 +03:00
parent d9925647c6
commit 864f5a040c
7 changed files with 34 additions and 31 deletions

View File

@ -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