feat: add expandable sidebar navigation to settings page

Replace direct SharedProfileSettings rendering with an expandable sidebar
that shows Profile, Security, and Preferences as collapsible sub-items
under Profile & Preferences. Matches the new settings pattern across
all Ciphera frontends.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Usman Baig
2026-02-28 17:56:06 +01:00
parent cba6347d70
commit c436680876
4 changed files with 160 additions and 4 deletions

View File

@@ -8,7 +8,11 @@ import { deleteAccount, getUserSessions, revokeSession, updateUserPreferences, u
import { setup2FA, verify2FA, disable2FA, regenerateRecoveryCodes } from '@/lib/api/2fa'
import { registerPasskey, listPasskeys, deletePasskey } from '@/lib/api/webauthn'
export default function ProfileSettings() {
interface Props {
activeTab?: 'profile' | 'security' | 'preferences'
}
export default function ProfileSettings({ activeTab }: Props = {}) {
const { user, refresh, logout } = useAuth()
if (!user) return null
@@ -54,6 +58,8 @@ export default function ProfileSettings() {
deriveAuthKey={deriveAuthKey}
refreshUser={refresh}
logout={logout}
activeTab={activeTab}
hideNav={activeTab !== undefined}
/>
)
}