feat: init responsive mode

This commit is contained in:
caturbgs
2021-12-09 11:31:02 +07:00
parent f27ddcfe90
commit 599a89449b
9 changed files with 438 additions and 133 deletions

View File

@@ -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;
};
}