File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,9 @@ import { useAuth } from '@/hooks/useAuth';
5
5
6
6
// TODO: Replace with actual authentication logic
7
7
// change this to false to see landing page
8
- const isLoggedIn = true ;
9
8
10
9
export default function Home ( ) {
11
- const { isAuthenticated, logout } = useAuth ( ) ;
10
+ const { isAuthenticated } = useAuth ( ) ;
12
11
if ( ! isAuthenticated ) {
13
12
return < LandingPage /> ;
14
13
} else {
Original file line number Diff line number Diff line change 1
1
'use client' ;
2
2
import { useState } from 'react' ;
3
- import { useRouter } from 'next/navigation' ;
4
3
import { useAuth } from '@/hooks/useAuth' ;
5
4
import { Button } from '@/components/ui/button' ;
6
5
import { Checkbox } from '@/components/ui/checkbox' ;
@@ -15,7 +14,6 @@ export default function LoginForm() {
15
14
const [ error , setError ] = useState ( '' ) ;
16
15
const { login } = useAuth ( ) ;
17
16
// const [error, setError] = useState('');
18
- const router = useRouter ( ) ;
19
17
// handle login here
20
18
const handleLogin = async ( e : React . FormEvent ) => {
21
19
e . preventDefault ( ) ;
You can’t perform that action at this time.
0 commit comments