diff --git a/components/admin/usageHistory/MenuTab.tsx b/components/admin/usageHistory/MenuTab.tsx index d7e0191ff..b5a7c08c2 100644 --- a/components/admin/usageHistory/MenuTab.tsx +++ b/components/admin/usageHistory/MenuTab.tsx @@ -28,10 +28,20 @@ function MenuTab() { ]; useEffect(() => { - if (tabIdx === 0) setChild(); - if (tabIdx === 1) setChild(); - if (tabIdx === 2) setChild(); - if (tabIdx === 3) setChild(); + switch (tabIdx) { + case 0: + setChild(); + break; + case 1: + setChild(); + break; + case 2: + setChild(); + break; + case 3: + setChild(); + break; + } }, [tabIdx]); return ( diff --git a/components/admin/usageHistory/ProfileList.tsx b/components/admin/usageHistory/ProfileList.tsx index 1e94822d9..8bad02d46 100644 --- a/components/admin/usageHistory/ProfileList.tsx +++ b/components/admin/usageHistory/ProfileList.tsx @@ -158,7 +158,7 @@ function ProfileList() { onClick={() => deleteProfile(profile)} disabled={!profile.isCurrent} > - 삭제 + {profile.isCurrent ? '삭제' : 'X'} ) : columnName === 'isCurrent' ? ( profile[columnName as keyof Iprofile] ? (