fix: correct mobileView initial state and add SpaceSettings tab reset

- UserSettings: change mobileView default from 'content' to 'tabs'
- SpaceSettings: add useEffect to reset tab and mobileView on modal open
This commit is contained in:
Jannis Braun
2026-03-22 02:26:15 +01:00
parent e87cab58bf
commit 1f3d10842d
2 changed files with 9 additions and 1 deletions
@@ -21,7 +21,7 @@ export function UserSettingsModal() {
const logout = useAuthStore((s) => s.logout);
const [tab, setTab] = useState<SettingsTab>('account');
const [mobileView, setMobileView] = useState<'tabs' | 'content'>('content');
const [mobileView, setMobileView] = useState<'tabs' | 'content'>('tabs');
const isOpen = activeModal === 'userSettings';