fix: use mobx action for setting state

This commit is contained in:
Aman Harwara
2022-10-18 20:30:39 +05:30
parent 361f773f2c
commit eec7ae1589

View File

@@ -30,9 +30,9 @@ export class PaneController {
mediumScreenMQHandler = (event: MediaQueryListEvent) => {
if (event.matches) {
this.isInMobileView = false
this.setIsInMobileView(false)
} else {
this.isInMobileView = true
this.setIsInMobileView(true)
}
}