Skip to content

Commit

Permalink
feat: NavItem 에 Text 반영
Browse files Browse the repository at this point in the history
  • Loading branch information
SeieunYoo committed Aug 13, 2024
1 parent 9e1da4a commit 9e71d51
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions packages/ui/src/components/NavItem/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { useSelectedLayoutSegments } from "next/navigation";
import { useState } from "react";

import arrowImageUrl from "../../assets/arrow.svg";
import Text from "../Text";

/**
* @description 내비게이션 바에서 사용하는 내비게이션 아이템 컴포넌트입니다.
Expand Down Expand Up @@ -66,7 +67,9 @@ const NavItem = ({ href, imageUrl, alt, name, items }: NavItemProps) => {
src={imageUrl}
width={20}
/>
<div className={navItemTextStyle}>{name}</div>
<Text as="div" typo="body1">
{name}
</Text>
{items?.length && items?.length > 1 && (
<Image
alt="toggle-icon"
Expand Down Expand Up @@ -102,7 +105,9 @@ const NavItem = ({ href, imageUrl, alt, name, items }: NavItemProps) => {
src={item.imageUrl}
width={20}
/>
<div className={navItemTextStyle}>{item.name}</div>
<Text as="div" typo="body1">
{item.name}
</Text>
</Link>
</li>
))}
Expand Down Expand Up @@ -133,10 +138,3 @@ const navItemStyle = cva({
},
},
});

const navItemTextStyle = css({
fontSize: "16px",
fontWeight: 500,
lineHeight: "160%",
letterSpacing: "-0.16px",
});

0 comments on commit 9e71d51

Please sign in to comment.