feat: init responsive mode
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
import {makeAutoObservable} from "mobx";
|
||||
|
||||
export class UI {
|
||||
mediaQuery = {
|
||||
isMobile: false,
|
||||
isDesktop: true
|
||||
};
|
||||
|
||||
mediaQuery = {};
|
||||
testValue = "Test Mobx";
|
||||
leftDrawerIsShown = false;
|
||||
params = {};
|
||||
baseUrl = '/app';
|
||||
|
||||
constructor(ctx) {
|
||||
this.ctx = ctx;
|
||||
@@ -22,4 +21,13 @@ export class UI {
|
||||
this.mediaQuery = data;
|
||||
}
|
||||
};
|
||||
|
||||
toggleLeftDrawerIsShown() {
|
||||
console.log('what')
|
||||
this.leftDrawerIsShown = !this.leftDrawerIsShown;
|
||||
}
|
||||
|
||||
setParams(data) {
|
||||
this.params = data;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user