mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
use DrawerController
for mobile openCreator
event
This commit is contained in:
parent
cfd6d75408
commit
c90c1d0336
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user