diff --git a/components/settings/ProfileSettings.tsx b/components/settings/ProfileSettings.tsx index f8dd99c..ebaec0b 100644 --- a/components/settings/ProfileSettings.tsx +++ b/components/settings/ProfileSettings.tsx @@ -9,11 +9,12 @@ import { setup2FA, verify2FA, disable2FA, regenerateRecoveryCodes } from '@/lib/ import { registerPasskey, listPasskeys, deletePasskey } from '@/lib/api/webauthn' interface Props { - activeTab?: 'profile' | 'security' | 'preferences' + activeTab?: 'profile' | 'security' | 'preferences' | 'danger-zone' borderless?: boolean + hideDangerZone?: boolean } -export default function ProfileSettings({ activeTab, borderless }: Props = {}) { +export default function ProfileSettings({ activeTab, borderless, hideDangerZone }: Props = {}) { const { user, refresh, logout } = useAuth() if (!user) return null @@ -63,6 +64,7 @@ export default function ProfileSettings({ activeTab, borderless }: Props = {}) { hideNav={activeTab !== undefined} hideNotifications borderless={borderless} + hideDangerZone={hideDangerZone} /> ) } diff --git a/components/settings/SettingsModalWrapper.tsx b/components/settings/SettingsModalWrapper.tsx index f50e844..2d21394 100644 --- a/components/settings/SettingsModalWrapper.tsx +++ b/components/settings/SettingsModalWrapper.tsx @@ -90,13 +90,14 @@ export default function SettingsModalWrapper() { const sections: SettingsSection[] = [ { id: 'pulse', - label: 'Pulse Settings', + label: 'Account', icon: UserIcon, defaultExpanded: true, items: [ - { id: 'profile', label: 'Profile', content: }, + { id: 'profile', label: 'Profile', content: }, { id: 'security', label: 'Security', content: }, { id: 'preferences', label: 'Preferences', content: }, + { id: 'danger-zone', label: 'Danger Zone', content: }, ], }, { diff --git a/package-lock.json b/package-lock.json index ea4f0f6..0ebe5d2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,7 +8,7 @@ "name": "pulse-frontend", "version": "0.13.0-alpha", "dependencies": { - "@ciphera-net/ui": "^0.0.91", + "@ciphera-net/ui": "^0.0.92", "@ducanh2912/next-pwa": "^10.2.9", "@radix-ui/react-icons": "^1.3.0", "@simplewebauthn/browser": "^13.2.2", @@ -1665,9 +1665,9 @@ } }, "node_modules/@ciphera-net/ui": { - "version": "0.0.91", - "resolved": "https://npm.pkg.github.com/download/@ciphera-net/ui/0.0.91/7576638f924b0fe731de561d668315f61b5b5590", - "integrity": "sha512-PIG+zxGW8LCXbC3tFkvN0d7B+axcyXsZm3/GI96gC9px8YPDNYDiFSJXM2VH4ls+DeNBpCiykfKdgujD9IcxNw==", + "version": "0.0.92", + "resolved": "https://npm.pkg.github.com/download/@ciphera-net/ui/0.0.92/68088da543459b34ab9fe780713537713b5e0673", + "integrity": "sha512-R+8fyvz7DhqHyJ2gai6ssRY3rE2OQlNt3ZepcpMeZouhujSNLO7KtApS4AP2qvJhKuWTnPNLj/B+kOWC3L4LMA==", "dependencies": { "@radix-ui/react-icons": "^1.3.0", "clsx": "^2.1.0", diff --git a/package.json b/package.json index a10b935..10e1953 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "test:watch": "vitest" }, "dependencies": { - "@ciphera-net/ui": "^0.0.91", + "@ciphera-net/ui": "^0.0.92", "@ducanh2912/next-pwa": "^10.2.9", "@radix-ui/react-icons": "^1.3.0", "@simplewebauthn/browser": "^13.2.2",