feat: create dedicated settings page instead of creating many modals

This commit is contained in:
Sonny
2025-08-21 15:59:03 +02:00
parent c2a1d06008
commit 376e9e32c3
16 changed files with 219 additions and 71 deletions

View File

@@ -0,0 +1,24 @@
import { useTranslation } from 'react-i18next';
import {
FloatingTab,
FloatingTabs,
} from '~/components/common/floating_tabs/floating_tabs';
import { UserPreferences } from '~/components/common/user_preferences/user_preferences';
import SmallContentLayout from '~/layouts/small_content';
function UserSettingsShow() {
const { t } = useTranslation();
const tabs: FloatingTab[] = [
{
label: t('preferences'),
value: 'preferences',
content: <UserPreferences />,
},
];
return <FloatingTabs tabs={tabs} />;
}
UserSettingsShow.layout = (page: React.ReactNode) => (
<SmallContentLayout>{page}</SmallContentLayout>
);
export default UserSettingsShow;