simple welcome message for all
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user