fix: use mobx action for setting state
This commit is contained in:
@@ -30,9 +30,9 @@ export class PaneController {
|
|||||||
|
|
||||||
mediumScreenMQHandler = (event: MediaQueryListEvent) => {
|
mediumScreenMQHandler = (event: MediaQueryListEvent) => {
|
||||||
if (event.matches) {
|
if (event.matches) {
|
||||||
this.isInMobileView = false
|
this.setIsInMobileView(false)
|
||||||
} else {
|
} else {
|
||||||
this.isInMobileView = true
|
this.setIsInMobileView(true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user