From 5683b7cfad4c5943b2c1b44d274d5aa8d4d6b50b Mon Sep 17 00:00:00 2001 From: Markus Nyman Date: Sun, 12 Nov 2023 00:54:13 +0200 Subject: [PATCH] remove unused file --- dance-app/src/context/PocketBaseContext.tsx | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 dance-app/src/context/PocketBaseContext.tsx diff --git a/dance-app/src/context/PocketBaseContext.tsx b/dance-app/src/context/PocketBaseContext.tsx deleted file mode 100644 index e50a5b4..0000000 --- a/dance-app/src/context/PocketBaseContext.tsx +++ /dev/null @@ -1,18 +0,0 @@ -import { RecordAuthResponse } from "pocketbase"; -import { ReactNode, createContext, useContext, useState } from "react"; -import PocketBase from "pocketbase"; - -interface Auth { - login: () -} - -export const AuthContext = createContext(null); - -export const AuthContextProvider = ({ children }: { children: ReactNode }) => { - const [auth, setAuth] = useState(null); - const {pb} = usePocketBase("https://junctionb.nyman.dev") - - return {children}; -}; - -export const useAuth = () => useContext(AuthContext);