Skip to content

Commit

Permalink
[Chore] GNB 이름 마스킹 처리 (#337)
Browse files Browse the repository at this point in the history
* chore: GNB 이름 마스킹 처리
  • Loading branch information
eonseok-jeon authored Aug 2, 2024
1 parent 7610a97 commit 2791042
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ interface MenuItemProps {
path?: string;
target?: '_blank' | '_self';
amplitudeId?: string;
className?: string;
onClick?: () => void;
}

const MenuItem = ({ text, path, target, amplitudeId, onClick }: MenuItemProps) => {
const MenuItem = ({ text, path, target, amplitudeId, className, onClick }: MenuItemProps) => {
return (
<li className={menuItem}>
<li className={`${className} ${menuItem}`}>
{path ? (
<NavLink
to={path}
Expand Down
2 changes: 1 addition & 1 deletion src/common/components/Layout/components/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const Header = () => {
<MenuItem key={text} text={text} path={path} target={target} amplitudeId={amplitudeId} />
))}
<MenuItem key="로그아웃" text="로그아웃" onClick={handleLogout} />
<MenuItem key="로그인완료" text={`${name}님`} />
<MenuItem key="로그인완료" text={`${name}님`} className="amp-block" />
</>
)}
</ul>
Expand Down

0 comments on commit 2791042

Please sign in to comment.