Skip to content

Commit

Permalink
fix: 학생회 하위탭도 섭네비에서 표시
Browse files Browse the repository at this point in the history
  • Loading branch information
yeolyi committed Mar 9, 2025
1 parent 9d50b71 commit f5c2822
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions components/layout/pageLayout/SubNavbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useTranslations } from 'next-intl';

import { CurvedVerticalNode } from '@/components/common/Nodes';
import NavLabel from '@/components/layout/navbar/NavLabel';
import { council, SegmentNode } from '@/constants/segmentNode';
import { SegmentNode } from '@/constants/segmentNode';
import { Link } from '@/i18n/routing';
import useStyle from '@/utils/hooks/useStyle';
import { getAllSubTabs, getDepth, getPath, getRootTab } from '@/utils/page';
Expand All @@ -20,8 +20,7 @@ const INDENTATION = 16;
export default function SubNavbar({ currentTab }: { currentTab: TreeNode }) {
const t = useTranslations('Nav');
const rootTab = getRootTab(currentTab as SegmentNode);
// 학생회 하위 탭은 서브내비 노출 X
const subTabs = getAllSubTabs(rootTab).filter((tab) => tab.parent !== council);
const subTabs = getAllSubTabs(rootTab);

const height = `${(subTabs.length + 1) * ITEM_HEIGHT}px`;

Expand Down

0 comments on commit f5c2822

Please sign in to comment.