diff --git a/app/(admin)/settings/_components/admin-settings-navigation.tsx b/app/(admin)/settings/_components/admin-settings-navigation.tsx
index ce6465a57..4a08e25a6 100644
--- a/app/(admin)/settings/_components/admin-settings-navigation.tsx
+++ b/app/(admin)/settings/_components/admin-settings-navigation.tsx
@@ -33,12 +33,6 @@ function getActiveGroup(activeTab: string) {
);
}
-function getActiveItem(activeTab: string) {
- return ADMIN_SETTINGS_NAV_GROUPS.flatMap((group) => group.items).find(
- (item) => item.value === activeTab
- );
-}
-
function SettingsGroupDropdown({
activeTab,
group,
@@ -166,123 +160,109 @@ export function AdminSettingsNavigation({
onTabChange: (value: string) => void;
}) {
const activeGroup = getActiveGroup(activeTab);
- const activeItem = getActiveItem(activeTab);
- const ActiveIcon = activeItem?.icon;
return (
-
-
-
-
- Admin Console
- {activeGroup ? (
- <>
-
-
- {activeGroup.title}
-
- >
- ) : null}
-
-
-
-
- 系统设置中心
-
- {activeItem && ActiveIcon ? (
-
-
-
-
-
- {activeItem.label}
-
- 当前
-
-
-
- ) : null}
-
-
+
+
+
-
-
-
-
-
- {(activeGroup?.items ?? []).map((item) => (
-
- ))}
-
-
-
-
-
- {ADMIN_SETTINGS_NAV_GROUPS.map((group) => (
-
- ))}
-
-
-
- {(activeGroup?.items ?? []).map((item) => (
-
- ))}
-
-
+
+ {(activeGroup?.items ?? []).map((item) => (
+
+ ))}
+
+
+
+ Admin Console
+
+
+ {activeGroup ? (
+ <>
+
+
+ {activeGroup.title}
+
+ >
+ ) : null}
+
+
+
+
+ {ADMIN_SETTINGS_NAV_GROUPS.map((group) => (
+
+ ))}
+
+
+
+ {(activeGroup?.items ?? []).map((item) => (
+
+ ))}
+
+
+
+
);
}