Skip to content

Commit 5da5a5e

Browse files
committed
Remove unused variables
1 parent 08443cb commit 5da5a5e

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

peerprep-fe/src/app/(main)/page.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@ import { useAuth } from '@/hooks/useAuth';
55

66
// TODO: Replace with actual authentication logic
77
// change this to false to see landing page
8-
const isLoggedIn = true;
98

109
export default function Home() {
11-
const { isAuthenticated, logout } = useAuth();
10+
const { isAuthenticated } = useAuth();
1211
if (!isAuthenticated) {
1312
return <LandingPage />;
1413
} else {

peerprep-fe/src/app/signin/page.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
'use client';
22
import { useState } from 'react';
3-
import { useRouter } from 'next/navigation';
43
import { useAuth } from '@/hooks/useAuth';
54
import { Button } from '@/components/ui/button';
65
import { Checkbox } from '@/components/ui/checkbox';
@@ -15,7 +14,6 @@ export default function LoginForm() {
1514
const [error, setError] = useState('');
1615
const { login } = useAuth();
1716
// const [error, setError] = useState('');
18-
const router = useRouter();
1917
// handle login here
2018
const handleLogin = async (e: React.FormEvent) => {
2119
e.preventDefault();

0 commit comments

Comments
 (0)