use DrawerController for mobile openCreator event

This commit is contained in:
SrGooglo 2022-11-24 14:15:34 +00:00
parent cfd6d75408
commit c90c1d0336

View File

@ -310,7 +310,14 @@ class App extends React.Component {
window.app.ModalController.open((props) => <Searcher {...props} />)
},
openCreator: () => {
window.app.ModalController.open((props) => <Creator {...props} />)
if (window.isMobile) {
return app.DrawerController.open("creator", Creator, {
allowMultiples: false,
escClosable: true,
})
}
return window.app.ModalController.open((props) => <Creator {...props} />)
},
openSettings: (goTo) => {
const controller = window.isMobile ? app.DrawerController : app.SidedrawerController