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>
This commit is contained in:
Innei
2025-12-03 19:02:01 +08:00
parent 3fe6ad564c
commit 1aac293020
2 changed files with 7 additions and 8 deletions

View File

@@ -7,12 +7,12 @@ const SETTINGS_TABS = [
path: '/settings/site',
end: true,
},
{
id: 'domain',
labelKey: 'settings.nav.domain',
path: '/settings/domain',
end: true,
},
// {
// id: 'domain',
// labelKey: 'settings.nav.domain',
// path: '/settings/domain',
// end: true,
// },
{
id: 'user',
labelKey: 'settings.nav.user',

View File

@@ -1,7 +1,6 @@
import { useTranslation } from 'react-i18next'
import { MainPageLayout } from '~/components/layouts/MainPageLayout'
import { SettingsNavigation } from '~/modules/settings'
import { CustomDomainCard } from '~/modules/site-settings'
export function Component() {
@@ -9,7 +8,7 @@ export function Component() {
return (
<MainPageLayout title={t('settings.domain.title')} description={t('settings.domain.description')}>
<div className="space-y-6">
<SettingsNavigation active="domain" />
{/* <SettingsNavigation active="domain" /> */}
<CustomDomainCard />
</div>
</MainPageLayout>