diff --git a/app/assets/javascripts/preferences/PreferencesMenu.ts b/app/assets/javascripts/preferences/PreferencesMenu.ts index 0e2b02e54ed..fd07570ee51 100644 --- a/app/assets/javascripts/preferences/PreferencesMenu.ts +++ b/app/assets/javascripts/preferences/PreferencesMenu.ts @@ -25,15 +25,15 @@ interface PreferencesMenuItem { * Items are in order of appearance */ const PREFERENCES_MENU_ITEMS: PreferencesMenuItem[] = [ - { id: 'general', label: 'General', icon: 'settings' }, { id: 'account', label: 'Account', icon: 'user' }, - { id: 'appearance', label: 'Appearance', icon: 'themes' }, + { id: 'general', label: 'General', icon: 'settings' }, + // { id: 'appearance', label: 'Appearance', icon: 'themes' }, { id: 'security', label: 'Security', icon: 'security' }, { id: 'extensions', label: 'Extensions', icon: 'tune' }, { id: 'listed', label: 'Listed', icon: 'listed' }, - { id: 'shortcuts', label: 'Shortcuts', icon: 'keyboard' }, - { id: 'accessibility', label: 'Accessibility', icon: 'accessibility' }, - { id: 'get-free-month', label: 'Get a free month', icon: 'star' }, + // { id: 'shortcuts', label: 'Shortcuts', icon: 'keyboard' }, + // { id: 'accessibility', label: 'Accessibility', icon: 'accessibility' }, + // { id: 'get-free-month', label: 'Get a free month', icon: 'star' }, { id: 'help-feedback', label: 'Help & feedback', icon: 'help' }, ]; @@ -46,7 +46,7 @@ const READY_PREFERENCES_MENU_ITEMS: PreferencesMenuItem[] = [ ]; export class PreferencesMenu { - private _selectedPane: PreferenceId = 'general'; + private _selectedPane: PreferenceId = 'account'; private _menu: PreferencesMenuItem[]; constructor( @@ -73,7 +73,7 @@ export class PreferencesMenu { get selectedPaneId(): PreferenceId { return ( - this._menu.find((item) => item.id === this._selectedPane)?.id ?? 'general' + this._menu.find((item) => item.id === this._selectedPane)?.id ?? 'account' ); } diff --git a/app/assets/javascripts/ui_models/app_state/preferences_state.ts b/app/assets/javascripts/ui_models/app_state/preferences_state.ts index ea232803eb4..9a4a0a961d7 100644 --- a/app/assets/javascripts/ui_models/app_state/preferences_state.ts +++ b/app/assets/javascripts/ui_models/app_state/preferences_state.ts @@ -3,7 +3,7 @@ import { action, computed, makeObservable, observable } from 'mobx'; export class PreferencesState { private _open = false; - currentPane: PreferenceId = 'general'; + currentPane: PreferenceId = 'account'; constructor() { makeObservable(this, { @@ -26,7 +26,7 @@ export class PreferencesState { closePreferences = (): void => { this._open = false; - this.currentPane = 'general'; + this.currentPane = 'account'; }; get isOpen() {