create sig in flow LO

This commit is contained in:
yzned
2025-07-19 21:33:53 +03:00
committed by yzned
parent de28d80769
commit ee83aefabc
20 changed files with 880 additions and 29 deletions

View File

@@ -2,6 +2,8 @@ import { LS_TOKENS } from "@/lib/constants";
import { makeAutoObservable } from "mobx";
export class AccountStore {
userId?: string;
isMainMenuOpen: boolean;
isSandboxOpen: boolean;
@@ -12,6 +14,9 @@ export class AccountStore {
this.isMainMenuOpen = savedState ? savedState === "true" : false;
this.isSandboxOpen = false;
const savedUserId = localStorage.getItem(LS_TOKENS.userId);
this.userId = savedUserId ? savedUserId : undefined;
}
setIsMainMenuOpen(value: boolean) {
@@ -22,4 +27,9 @@ export class AccountStore {
setIsSandboxOpen(value: boolean) {
this.isSandboxOpen = value;
}
setUserId(value: string) {
this.userId = value;
localStorage.setItem(LS_TOKENS.userId, value);
}
}