loading page

This commit is contained in:
Oliver Bryan
2025-12-22 06:42:31 +00:00
parent bba672a020
commit 92bd169413
2 changed files with 15 additions and 2 deletions

View File

@@ -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) {
</div>
);
return <>loading...</>;
return (
<Loading>
<span className="text-xs px-2 py-1 bg-input">Understanding your authentication state</span>
</Loading>
);
}

View File

@@ -0,0 +1,8 @@
export default function Loading({ children }: { children?: React.ReactNode }) {
return (
<div className="flex flex-col items-center justify-center gap-4 w-full h-[100vh]">
<h1>Loading...</h1>
{children}
</div>
);
}