Skip to content

Commit

Permalink
fix: removed unnecessary redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
FleetAdmiralJakob committed Nov 25, 2024
1 parent c1ff55f commit ca2fae7
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/components/navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,48 +30,48 @@ const Navbar = () => {
>
<div className="flex w-full justify-around lg:h-full lg:flex-col">
<Link
className={"flex flex-col items-center"}
href={"/"}
className="flex flex-col items-center"
href="/chats"
aria-label="Go to the chat-overview page"
>
<MessagesSquare
className={cn({
"text-accent": pathname.includes("/chats"),
})}
/>
<p className={"mt-0.5 text-sm lg:hidden"}>Chats</p>
<p className="mt-0.5 text-sm lg:hidden">Chats</p>
</Link>
<Link
className={"flex flex-col items-center"}
href={"/todo"}
className="flex flex-col items-center"
href="/todo"
aria-label="Go to the todo-overview page"
>
<CalendarCheck
className={cn({
"text-accent": pathname === "/todo",
})}
/>
<p className={"mt-0.5 text-sm lg:hidden"}>Todo</p>
<p className="mt-0.5 text-sm lg:hidden">Todo</p>
</Link>
<Link
className={"flex flex-col items-center"}
href={"/"}
className="flex flex-col items-center"
href="/"
aria-label="Go to the group page"
>
<UsersRound />
<p className={"mt-0.5 text-sm lg:hidden"}>Group</p>
<p className="mt-0.5 text-sm lg:hidden">Group</p>
</Link>
<Link
className={"flex flex-col items-center"}
href={"/profile"}
className="flex flex-col items-center"
href="/profile"
aria-label="Go to the profile page, where you can change your personal settings"
>
<CircleUser
className={cn({
"text-accent": pathname === "/profile",
})}
/>
<p className={"mt-0.5 text-sm lg:hidden"}>Profile</p>
<p className="mt-0.5 text-sm lg:hidden">Profile</p>
</Link>
</div>
</div>
Expand Down

0 comments on commit ca2fae7

Please sign in to comment.