mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-11 19:44: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} />)
|
window.app.ModalController.open((props) => <Searcher {...props} />)
|
||||||
},
|
},
|
||||||
openCreator: () => {
|
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) => {
|
openSettings: (goTo) => {
|
||||||
const controller = window.isMobile ? app.DrawerController : app.SidedrawerController
|
const controller = window.isMobile ? app.DrawerController : app.SidedrawerController
|
||||||
|
Loading…
x
Reference in New Issue
Block a user