mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-11 03:24:16 +00:00
use controllers depending if is mobile
This commit is contained in:
parent
0df0a1a76c
commit
509d7b3dc2
@ -310,7 +310,14 @@ class App extends React.Component {
|
|||||||
window.app.ModalController.open((props) => <Creator {...props} />)
|
window.app.ModalController.open((props) => <Creator {...props} />)
|
||||||
},
|
},
|
||||||
openSettings: (goTo) => {
|
openSettings: (goTo) => {
|
||||||
window.app.SidedrawerController.open("Settings", Settings, {
|
const controller = window.isMobile ? app.DrawerController : app.SidedrawerController
|
||||||
|
|
||||||
|
if (!controller) {
|
||||||
|
console.error("No controller found")
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
controller.open("Settings", Settings, {
|
||||||
props: {
|
props: {
|
||||||
width: "fit-content",
|
width: "fit-content",
|
||||||
goTo,
|
goTo,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user