Skip to content

Commit

Permalink
Links now uses link because I'm dumb
Browse files Browse the repository at this point in the history
  • Loading branch information
kglovern committed Aug 14, 2024
1 parent 2aba8a3 commit 5cbc133
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/app/src/features/navbar/components/NavbarLink.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from "react";
import { Link} from '@tanstack/react-router';

interface NavbarLinkProps {
href: string;
Expand All @@ -12,10 +13,10 @@ interface NavbarLinkProps {
export function NavbarLink(props: NavbarLinkProps) {
return (
<div className="flex flex-col">
<a className="flex flex-col gap-0.5 self-center content-center items-center justify-center text-sm text-gray-500" href={props.href}>
<Link className="flex flex-col gap-0.5 self-center content-center items-center justify-center text-sm text-gray-500" to={props.href}>
<props.icon className="text-4xl text-gray-800"/>
{ props.label }
</a>
</Link>
</div>
)
}

0 comments on commit 5cbc133

Please sign in to comment.