simple welcome message for all

This commit is contained in:
Dobromir Popov
2024-05-18 11:41:05 +03:00
parent dcf42df20b
commit 9889651764
5 changed files with 33 additions and 9 deletions

View File

@@ -17,12 +17,16 @@ export default function IndexPage() {
useEffect(() => {
// Redirect to /dash if user is logged in
if (session) {
router.push('/dash');
router.push('/dash?newLogin=true');
}
}, [session, router]);
if (status === "loading") {
return <p>Loading...</p>; // Or any other loading state
return (
<div className="flex justify-center items-center h-screen">
<p className="text-lg font-medium">Loading...</p>
</div>
);
}
if (session) {