|
|
@ -9,7 +9,7 @@ interface NavItemProps { |
|
|
|
|
|
|
|
|
|
|
|
const NavItem: React.FC<NavItemProps> = ({ to, icon, title }) => { |
|
|
|
const NavItem: React.FC<NavItemProps> = ({ to, icon, title }) => { |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<NavLink to={to} className={({ isActive }) => 'text-decoration-none d-flex flex-column justify-content-center p-2 small ' + (isActive ? 'bg-light' : 'bg-transparent')}> |
|
|
|
<NavLink to={to} className={({ isActive }) => 'text-decoration-none d-flex flex-column justify-content-center py-2 px-1 small ' + (isActive ? 'bg-light' : 'bg-transparent')}> |
|
|
|
<span> |
|
|
|
<span> |
|
|
|
<span>{icon}</span> |
|
|
|
<span>{icon}</span> |
|
|
|
<span className="ml-2">{title}</span> |
|
|
|
<span className="ml-2">{title}</span> |
|
|
|