Files
afilmory/be/apps/dashboard/src/modules/settings/components/SettingsNavigation.tsx
Innei 1aac293020 refactor: comment out domain navigation and its usage in settings page
- Removed the 'domain' tab from the SETTINGS_TABS array in SettingsNavigation.tsx for cleaner navigation.
- Commented out the usage of <SettingsNavigation active="domain" /> in the domain settings page to prevent rendering issues.

Signed-off-by: Innei <tukon479@gmail.com>
2025-12-03 19:02:01 +08:00

55 lines
1016 B
TypeScript

import { PageTabs } from '~/components/navigation/PageTabs'
const SETTINGS_TABS = [
{
id: 'site',
labelKey: 'settings.nav.site',
path: '/settings/site',
end: true,
},
// {
// id: 'domain',
// labelKey: 'settings.nav.domain',
// path: '/settings/domain',
// end: true,
// },
{
id: 'user',
labelKey: 'settings.nav.user',
path: '/settings/user',
end: true,
},
{
id: 'account',
labelKey: 'settings.nav.account',
path: '/settings/account',
end: true,
},
{
id: 'data',
labelKey: 'settings.nav.data',
path: '/settings/data',
end: true,
},
] as const
type SettingsNavigationProps = {
active: (typeof SETTINGS_TABS)[number]['id']
}
export function SettingsNavigation({ active }: SettingsNavigationProps) {
return (
<PageTabs
activeId={active}
items={SETTINGS_TABS.map((tab) => ({
id: tab.id,
labelKey: tab.labelKey,
to: tab.path,
end: tab.end,
}))}
/>
)
}