diff --git a/packages/frontend/src/components/auth-provider.tsx b/packages/frontend/src/components/auth-provider.tsx index 2dd595a..19e220d 100644 --- a/packages/frontend/src/components/auth-provider.tsx +++ b/packages/frontend/src/components/auth-provider.tsx @@ -1,6 +1,7 @@ import type { UserRecord } from "@issue/shared"; import { useEffect, useRef, useState } from "react"; -import LogInForm from "./login-form"; +import Loading from "@/components/loading"; +import LogInForm from "@/components/login-form"; type AuthProviderProps = { children: React.ReactNode; @@ -48,5 +49,9 @@ export function Auth({ children }: AuthProviderProps) { ); - return <>loading...; + return ( + + Understanding your authentication state + + ); } diff --git a/packages/frontend/src/components/loading.tsx b/packages/frontend/src/components/loading.tsx new file mode 100644 index 0000000..cf4b0de --- /dev/null +++ b/packages/frontend/src/components/loading.tsx @@ -0,0 +1,8 @@ +export default function Loading({ children }: { children?: React.ReactNode }) { + return ( +
+

Loading...

+ {children} +
+ ); +}