Add report bug functionality and settings sections refactor
This commit is contained in:
34
src/constants/settingsSections.js
Normal file
34
src/constants/settingsSections.js
Normal file
@@ -0,0 +1,34 @@
|
||||
import {
|
||||
AccountCircle,
|
||||
Api,
|
||||
Circle,
|
||||
Code,
|
||||
FamilyRestroom,
|
||||
Language,
|
||||
Notifications,
|
||||
Palette,
|
||||
Person,
|
||||
Security,
|
||||
Settings,
|
||||
Storage,
|
||||
ViewSidebar,
|
||||
} from '@mui/icons-material'
|
||||
|
||||
// Single source of truth for the settings sections: id, icon, and access
|
||||
// gating. Titles/descriptions live in locales/settings.json under
|
||||
// `overview.sections.<id>`, keyed off the same ids.
|
||||
export const SETTINGS_SECTIONS = [
|
||||
{ id: 'profile', icon: Person },
|
||||
{ id: 'circle', icon: Circle, parentOnly: true },
|
||||
{ id: 'account', icon: AccountCircle, parentOnly: true },
|
||||
{ id: 'subaccounts', icon: FamilyRestroom },
|
||||
{ id: 'notifications', icon: Notifications },
|
||||
{ id: 'mfa', icon: Security, parentOnly: true },
|
||||
{ id: 'apitokens', icon: Api, parentOnly: true },
|
||||
{ id: 'storage', icon: Storage },
|
||||
{ id: 'sidepanel', icon: ViewSidebar },
|
||||
{ id: 'theme', icon: Palette },
|
||||
{ id: 'localization', icon: Language, isBeta: true },
|
||||
{ id: 'advanced', icon: Settings },
|
||||
{ id: 'developer', icon: Code },
|
||||
]
|
||||
Reference in New Issue
Block a user