diff --git a/src/ui/Base/BottomNavigation.tsx b/src/ui/Base/BottomNavigation.tsx index b753e727..ee8ddc47 100644 --- a/src/ui/Base/BottomNavigation.tsx +++ b/src/ui/Base/BottomNavigation.tsx @@ -35,20 +35,19 @@ const icons = [ const BottomNavigation = () => { const pathname = usePathname(); - const getIconColorClasses = (href: string) => { - return href === pathname - ? 'fill-main-900 text-main-900' - : 'fill-placeholder text-placeholder'; - }; + const iconColor = { + active: 'fill-main-900 text-main-900', + inactive: 'fill-placeholder text-placeholder', + } as const; return (
{icons.map(({ icon, label, href }) => (
{icon}
{label}