feat: cleanup header and extract to component
This commit is contained in:
parent
c6cdcf35eb
commit
5ff09e44d9
5 changed files with 119 additions and 75 deletions
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue