Skip to content

Commit

Permalink
chore: 불필요한 Fragment 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
hanyugeon committed Dec 15, 2023
1 parent b28b0e8 commit 75045e3
Showing 1 changed file with 14 additions and 18 deletions.
32 changes: 14 additions & 18 deletions src/v1/base/BottomNavigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,24 +41,20 @@ const iconColor = {

const BottomNavigation = ({ pathname }: BottomNavigationProps) => {
return (
<>
<nav className="absolute bottom-0 left-0 flex h-[6.4rem] w-full max-w-[43rem] justify-between border-t-[0.05rem] border-black-200 bg-white px-[2.6rem] pb-[1.2rem] pt-[0.8rem]">
{icons.map(({ icon, label, href }) => (
<Link key={label} type="button" href={href}>
<button
className={`flex h-[4.4rem] w-[4.6rem] flex-col items-center justify-center ${
href === pathname ? iconColor.active : iconColor.inactive
}`}
>
<div className="h-[2.6rem] w-[2.6rem] text-placeholder">
{icon}
</div>
<p className="text-xs font-bold">{label}</p>
</button>
</Link>
))}
</nav>
</>
<nav className="absolute bottom-0 left-0 flex h-[6.4rem] w-full max-w-[43rem] justify-between border-t-[0.05rem] border-black-200 bg-white px-[2.6rem] pb-[1.2rem] pt-[0.8rem]">
{icons.map(({ icon, label, href }) => (
<Link key={label} type="button" href={href}>
<button
className={`flex h-[4.4rem] w-[4.6rem] flex-col items-center justify-center ${
href === pathname ? iconColor.active : iconColor.inactive
}`}
>
<div className="h-[2.6rem] w-[2.6rem] text-placeholder">{icon}</div>
<p className="text-xs font-bold">{label}</p>
</button>
</Link>
))}
</nav>
);
};

Expand Down

0 comments on commit 75045e3

Please sign in to comment.