File tree Expand file tree Collapse file tree 6 files changed +8
-9
lines changed
(auth)/leetcode-dashboard Expand file tree Collapse file tree 6 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 1
1
"use client" ;
2
2
3
3
import { useAuth } from "@/components/auth/AuthContext" ;
4
- import LandingPage from "./components/landing-page/LandingPage" ;
5
- // import Dashboard from "./components/dashboard/Dashboard";
6
- import LeetcodeDashboard from "./leetcode-dashboard/LeetcodeDashboard" ;
4
+ import LandingPage from "@/app/(home)/components/landing-page/LandingPage" ;
5
+ import LeetcodeDashboard from "./LeetcodeDashboard" ;
7
6
8
7
const Home = ( ) => {
9
8
const { token } = useAuth ( ) ;
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 1
- import CodeSnippet from "@/app/home/components/code-snippet/CodeSnippetHighlight" ;
1
+ import CodeSnippet from "@/app/( home) /components/code-snippet/CodeSnippetHighlight" ;
2
2
import { Button } from "@/components/ui/button" ;
3
3
import { Card , CardContent } from "@/components/ui/card" ;
4
- import GoogleIcon from "@/app/home/components/icon/GoogleIcon" ;
4
+ 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" ;
@@ -14,7 +14,7 @@ const LandingPage = () => {
14
14
const googleLogin = useGoogleLogin ( {
15
15
onSuccess : ( response ) => {
16
16
login ( response ) ;
17
- router . push ( "/" ) ; // Redirect to dashboard after successful login
17
+ router . push ( "/leetcode-dashboard " ) ; // Redirect to dashboard after successful login
18
18
} ,
19
19
onError : ( error ) => {
20
20
console . error ( "Login Failed:" , error ) ;
@@ -24,7 +24,7 @@ const LandingPage = () => {
24
24
// Trigger OAuth pop up only if user is not authenticated (token is not present)
25
25
const handleLogin = ( ) => {
26
26
if ( token ) {
27
- router . push ( "/" ) ;
27
+ router . push ( "/leetcode-dashboard " ) ;
28
28
} else {
29
29
googleLogin ( ) ;
30
30
}
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
"use client" ;
2
2
3
- import Navbar from "@/app/home/components/navbar/Navbar" ;
4
- import LandingPage from "@/app/home/components/landing-page/LandingPage" ;
3
+ import Navbar from "@/app/( home) /components/navbar/Navbar" ;
4
+ import LandingPage from "@/app/( home) /components/landing-page/LandingPage" ;
5
5
6
6
const Home = ( ) => {
7
7
return (
You can’t perform that action at this time.
0 commit comments