fix: [생산현황판] 절곡 하위 탭 숨김 — 전체로 자동 동작
This commit is contained in:
@@ -215,29 +215,7 @@ export default function ProductionDashboard() {
|
||||
</Tabs>
|
||||
</div>
|
||||
|
||||
{/* 하위 탭 (절곡 재공품 세분화) */}
|
||||
{(() => {
|
||||
const parentTab = tabOptions.find(t => t.children && t.children.length > 0 &&
|
||||
(t.value === selectedTab || t.children.some(c => c.value === selectedTab))
|
||||
);
|
||||
if (!parentTab?.children) return null;
|
||||
return (
|
||||
<div className="overflow-x-auto -mx-3 px-3 md:mx-0 md:px-0">
|
||||
<Tabs value={selectedTab} onValueChange={setSelectedTab}>
|
||||
<TabsList className="w-max h-8 bg-gray-100">
|
||||
<TabsTrigger value={parentTab.value} className="px-3 text-xs h-7">
|
||||
전체
|
||||
</TabsTrigger>
|
||||
{parentTab.children.map((sub) => (
|
||||
<TabsTrigger key={sub.value} value={sub.value} className="px-3 text-xs h-7">
|
||||
{sub.label}
|
||||
</TabsTrigger>
|
||||
))}
|
||||
</TabsList>
|
||||
</Tabs>
|
||||
</div>
|
||||
);
|
||||
})()}
|
||||
{/* 하위 탭은 숨김 — 절곡 선택 시 전체(P-003)로 자동 동작 */}
|
||||
</div>
|
||||
|
||||
{/* 로딩 상태 */}
|
||||
|
||||
Reference in New Issue
Block a user