Skip to content

Commit d400f5e

Browse files
committed
feat : children이 한 개인 경우 중 hide가 true면 화살표 안생기도록 수정
1 parent 8fdb4f4 commit d400f5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/pyconkr/src/components/layout/Header/Mobile/MobileNavigation.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export const MobileNavigation: React.FC<MobileNavigationProps> = ({ isOpen, onCl
9090
<MenuLink isMainPath={isMainPath} to={menu.route_code} onClick={handleClose}>
9191
{menu.name}
9292
</MenuLink>
93-
{!R.isEmpty(menu.children) && (
93+
{!R.isEmpty(menu.children) && Object.values(menu.children).some((child) => !child.hide) && (
9494
<MenuArrowButton isMainPath={isMainPath} onClick={() => navigateToDepth2(menu)}>
9595
<ArrowForward fontSize="small" />
9696
</MenuArrowButton>
@@ -123,7 +123,7 @@ export const MobileNavigation: React.FC<MobileNavigationProps> = ({ isOpen, onCl
123123
<Link to={`${navState.depth1!.route_code}/${menu.route_code}`} onClick={handleClose} style={{ textDecoration: "none" }}>
124124
<MenuChip isMainPath={isMainPath} label={menu.name} clickable />
125125
</Link>
126-
{!R.isEmpty(menu.children) && (
126+
{!R.isEmpty(menu.children) && Object.values(menu.children).some((child) => !child.hide) && (
127127
<MenuArrowButton isMainPath={isMainPath} onClick={() => navigateToDepth3(menu)}>
128128
<ArrowForward fontSize="small" />
129129
</MenuArrowButton>

0 commit comments

Comments
 (0)