From f0de3fa1cf4ad2380953bd1f85e134987932e6e3 Mon Sep 17 00:00:00 2001 From: srgooglo Date: Wed, 1 Jun 2022 03:16:29 +0200 Subject: [PATCH] use `SidedrawerController` --- packages/app/src/App.jsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/app/src/App.jsx b/packages/app/src/App.jsx index a58f592c..027c0523 100644 --- a/packages/app/src/App.jsx +++ b/packages/app/src/App.jsx @@ -116,10 +116,10 @@ class App extends React.Component { if (!this.state.session && !token) { return false } - + await this.sessionController.forgetLocalSession() await this.flushState() - + app.eventBus.emit("forceToLogin") antd.notification.open({ @@ -214,13 +214,13 @@ class App extends React.Component { static publicMethods = { openSettings: (goTo) => { - window.app.DrawerController.open("settings", Settings, { + window.app.SidedrawerController.open("Settings", Settings, { props: { width: "fit-content", - }, - componentProps: { goTo, - } + }, + allowMultiples: false, + escClosable: true, }) }, openNavigationMenu: () => window.app.DrawerController.open("navigation", Navigation),