feat: cleanup header and extract to component

This commit is contained in:
Aarnav Tale 2024-05-04 15:04:22 -04:00
parent c6cdcf35eb
commit 5ff09e44d9
No known key found for this signature in database
5 changed files with 119 additions and 75 deletions

View file

@ -13,8 +13,9 @@ export default function TabLink({ name, to, icon }: Properties) {
<NavLink
to={to}
className={({ isActive, isPending }) => clsx(
'flex items-center gap-x-2 p-2 border-b-2 text-md',
isActive ? 'border-white' : 'border-transparent'
'flex items-center gap-x-2 p-2 border-b-2 text-md text-nowrap',
isActive ? 'border-white' : 'border-transparent',
isPending && 'animate-pulse'
)}
>
{icon} {name}