mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-04 15:07:13 +01:00
move CRUD operations to helpers
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import useSWR from 'swr'
|
||||
import fetch from './fetch'
|
||||
|
||||
const fetcher = (path: string) => fetch(path).then((r) => r.json())
|
||||
const fetcher = (path: string) => fetch(path)
|
||||
|
||||
function useDaysBooked() {
|
||||
const { data: daysBooked, error: daysBookedError } = useSWR(
|
||||
|
||||
Reference in New Issue
Block a user