add loader
This commit is contained in:
@@ -30,6 +30,8 @@ class Store {
|
||||
|
||||
_accountInfo = {};
|
||||
|
||||
_loading = false;
|
||||
|
||||
constructor() {
|
||||
makeAutoObservable(this, {});
|
||||
|
||||
@@ -289,6 +291,14 @@ class Store {
|
||||
[item.label]: item.value
|
||||
}), {})
|
||||
}
|
||||
|
||||
get loading() {
|
||||
return this._loading;
|
||||
}
|
||||
|
||||
set loading(value) {
|
||||
this._loading = value;
|
||||
}
|
||||
}
|
||||
|
||||
export const store = new Store();
|
||||
|
||||
Reference in New Issue
Block a user