Skip to content

Commit 96efc1b

Browse files
committed
PEER-230: Add profile button
1 parent d849a05 commit 96efc1b

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

frontend/src/components/blocks/login-form.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const LoginForm = observer(() => {
1414
}, []);
1515

1616
return (
17-
<Card className='bg-primary-foreground mx-auto flex min-h-[650px] min-w-[400px] max-w-sm flex-col justify-center'>
17+
<Card className='bg-primary-foreground mx-auto flex h-[650px] max-h-[90%] min-w-[400px] max-w-sm flex-col justify-center'>
1818
<div>
1919
<CardHeader className='flex items-center pb-10'>
2020
<CardTitle className='text-3xl'>Welcome Back To</CardTitle>

frontend/src/components/blocks/nav-bar.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { SunIcon, MoonIcon } from '@radix-ui/react-icons';
1+
import { SunIcon, MoonIcon, PersonIcon } from '@radix-ui/react-icons';
22
import { observer } from 'mobx-react';
33

44
import { Tabs, TabsList, TabsTrigger } from '../ui/tabs';
@@ -52,6 +52,11 @@ const NavBar = observer(() => {
5252
<a href={ROUTES.LOGIN}>Log In</a>
5353
</Button>
5454
)}
55+
{!isSignUp && !isLogin && (
56+
<Button variant='outline' size='icon' className='overflow-hidden rounded-full'>
57+
<PersonIcon />
58+
</Button>
59+
)}
5560
</div>
5661
</nav>
5762
</header>

frontend/src/components/blocks/private-route.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ interface PrivateRouteProps {
77

88
export function PrivateRoute({ children }: PrivateRouteProps) {
99
//const isAuthenticated = checkUserAuthentication();
10-
const isAuthenticated = false;
10+
const isAuthenticated = true;
1111
return isAuthenticated ? children : <Navigate to='/login' />;
1212
}

0 commit comments

Comments
 (0)