Skip to content

Commit 37bd88c

Browse files
committed
Changed user to be accepted as User instead of any. Clarified TODO comments.
1 parent 1d9c2b2 commit 37bd88c

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/components/BottomNavbar.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ import { UserService } from "@/services/UserService";
77

88
import ClientBottomNavbar from "./ClientBottomNavbar";
99

10-
//TODO: add redirects
11-
1210
export default async function BottomNavbar() {
1311
const session = await getServerSession(authOptions);
1412
if (!session) redirect("/login");

src/components/ClientBottomNavbar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import giftBoxIcon from "@/assets/icons/gift-box.png";
1212
import attendeeLink from "@/assets/icons/link_card_attendee.png"
1313
import companyLink from "@/assets/icons/link_card_company.png"
1414

15-
//TODO: add redirects
15+
//TODO: add the redirects on the buttons to the corresponding pages once the pages are implemented
1616

1717
function RightIcon({ role } : { role: string}) {
1818
switch (role) {
@@ -49,7 +49,7 @@ function RightIcon({ role } : { role: string}) {
4949
}
5050
}
5151

52-
export default function ClientBottomNavbar({ user } : { user: any}) {
52+
export default function ClientBottomNavbar({ user } : { user: User}) {
5353
const path = usePathname()
5454
return (
5555
<div className="flex flex-col items-center">

0 commit comments

Comments
 (0)