File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
frontend/src/app/(home)/components Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import GoogleIcon from "@/app/(home)/components/icon/GoogleIcon";
5
5
import { useAuth } from "@/components/auth/AuthContext" ;
6
6
import { useGoogleLogin } from "@react-oauth/google" ;
7
7
import { useRouter } from "next/navigation" ;
8
- import { useEffect } from "react" ;
9
8
10
9
const LandingPage = ( ) => {
11
10
const { login, token } = useAuth ( ) ;
@@ -14,7 +13,7 @@ const LandingPage = () => {
14
13
const googleLogin = useGoogleLogin ( {
15
14
onSuccess : ( response ) => {
16
15
login ( response ) ;
17
- router . push ( "/leetcode-dashboard" ) ; // Redirect to dashboard after successful login
16
+ // router.push("/leetcode-dashboard"); // Redirect to dashboard after successful login
18
17
} ,
19
18
onError : ( error ) => {
20
19
console . error ( "Login Failed:" , error ) ;
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ const Navbar = () => {
11
11
</ div >
12
12
13
13
< 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" } ` } >
15
15
Home
16
16
</ Link >
17
17
< Link href = "" className = { `text-primary-300 hover:underline ${ isActive ( "/about" ) ? "opacity-100" : "opacity-50 hover:opacity-100" } ` } >
You can’t perform that action at this time.
0 commit comments