feat: Implement redirect to projects page on home component load
This commit is contained in:
@@ -113,13 +113,13 @@ function SignInContent() {
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div className="text-center">
|
||||
{/* <div className="text-center">
|
||||
<div className="text-sm text-gray-600 bg-blue-50 p-3 rounded">
|
||||
<p className="font-medium">Default Admin Account:</p>
|
||||
<p>Email: admin@localhost</p>
|
||||
<p>Password: admin123456</p>
|
||||
</div>
|
||||
</div>
|
||||
</div> */}
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
"use client";
|
||||
|
||||
import { useEffect } from "react";
|
||||
import { useRouter } from "next/navigation";
|
||||
|
||||
export default function Home() {
|
||||
const router = useRouter();
|
||||
|
||||
useEffect(() => {
|
||||
// Redirect to projects page
|
||||
router.replace("/projects");
|
||||
}, [router]);
|
||||
|
||||
// Show nothing while redirecting
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user