refactor: migrate account-menu to react - implement functionality
- implement different handlers, such as set/change/remove passcode, etc. - setup correct initial values - rename React component
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { action, makeObservable, observable } from "mobx";
|
||||
import { WebApplication } from '@/ui_models/application';
|
||||
|
||||
export class AccountMenuState2 {
|
||||
export class AccountMenuStateReact {
|
||||
show = false;
|
||||
signingOut = false;
|
||||
|
||||
@@ -21,7 +21,7 @@ import { SyncState } from './sync_state';
|
||||
import { SearchOptionsState } from './search_options_state';
|
||||
import { NotesState } from './notes_state';
|
||||
import { TagsState } from './tags_state';
|
||||
import { AccountMenuState2 } from '@/ui_models/app_state/account_menu_2_state';
|
||||
import { AccountMenuStateReact } from '@/ui_models/app_state/account_menu_react_state';
|
||||
|
||||
export enum AppStateEvent {
|
||||
TagChanged,
|
||||
@@ -62,8 +62,7 @@ export class AppState {
|
||||
selectedTag?: SNTag;
|
||||
showBetaWarning: boolean;
|
||||
readonly accountMenu = new AccountMenuState();
|
||||
// readonly accountMenu2 = new AccountMenu_2_State();
|
||||
readonly accountMenu2: AccountMenuState2;
|
||||
readonly accountMenuReact: AccountMenuStateReact;
|
||||
readonly actionsMenu = new ActionsMenuState();
|
||||
readonly noAccountWarning: NoAccountWarningState;
|
||||
readonly sync = new SyncState();
|
||||
@@ -99,10 +98,7 @@ export class AppState {
|
||||
application,
|
||||
this.appEventObserverRemovers
|
||||
);
|
||||
this.accountMenu2 = new AccountMenuState2(
|
||||
// application,
|
||||
// this.appEventObserverRemovers
|
||||
);
|
||||
this.accountMenuReact = new AccountMenuStateReact();
|
||||
this.searchOptions = new SearchOptionsState(
|
||||
application,
|
||||
this.appEventObserverRemovers
|
||||
|
||||
Reference in New Issue
Block a user