🎨 standardJS all files

This commit is contained in:
divlo
2020-08-03 14:14:45 +02:00
parent dc962c9120
commit 4be7a46a10
85 changed files with 3595 additions and 2383 deletions

View File

@ -14,11 +14,11 @@ function useAPI (url, defaultData = [], method = 'get', options = {}) {
useEffect(() => {
api[method](url, options)
.then((result) => {
.then(result => {
setData(result.data)
setIsLoading(false)
})
.catch((error) => {
.catch(error => {
setHasError(true)
console.error(error)
})