Skip to content

Commit 34eb9df

Browse files
committed
Fix navbar url and remove unused import
1 parent 428c204 commit 34eb9df

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

frontend/src/app/(home)/components/landing-page/LandingPage.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import GoogleIcon from "@/app/(home)/components/icon/GoogleIcon";
55
import { useAuth } from "@/components/auth/AuthContext";
66
import { useGoogleLogin } from "@react-oauth/google";
77
import { useRouter } from "next/navigation";
8-
import { useEffect } from "react";
98

109
const LandingPage = () => {
1110
const { login, token } = useAuth();
@@ -14,7 +13,7 @@ const LandingPage = () => {
1413
const googleLogin = useGoogleLogin({
1514
onSuccess: (response) => {
1615
login(response);
17-
router.push("/leetcode-dashboard"); // Redirect to dashboard after successful login
16+
//router.push("/leetcode-dashboard"); // Redirect to dashboard after successful login
1817
},
1918
onError: (error) => {
2019
console.error("Login Failed:", error);

frontend/src/app/(home)/components/navbar/Navbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const Navbar = () => {
1111
</div>
1212

1313
<div className="flex space-x-6">
14-
<Link href="/home" className={`text-primary-300 hover:underline ${isActive("/home") ? "opacity-100" : "opacity-50 hover:opacity-100"}`}>
14+
<Link href="/home" className={`text-primary-300 hover:underline ${isActive("/") ? "opacity-100" : "opacity-50 hover:opacity-100"}`}>
1515
Home
1616
</Link>
1717
<Link href="" className={`text-primary-300 hover:underline ${isActive("/about") ? "opacity-100" : "opacity-50 hover:opacity-100"}`}>

0 commit comments

Comments
 (0)