Add a server instance selector and drop env vars

This commit is contained in:
Paul Frazee
2022-11-15 15:09:50 -06:00
parent 20ed8da853
commit bc76c7ffb8
14 changed files with 383 additions and 174 deletions
+8
View File
@@ -13,6 +13,7 @@ import * as SharePostModal from './SharePost.native'
import * as EditProfileModal from './EditProfile'
import * as CreateSceneModal from './CreateScene'
import * as InviteToSceneModal from './InviteToScene'
import * as ServerInputModal from './ServerInput'
const CLOSED_SNAPPOINTS = ['10%']
@@ -77,6 +78,13 @@ export const Modal = observer(function Modal() {
{...(store.shell.activeModal as models.InviteToSceneModel)}
/>
)
} else if (store.shell.activeModal?.name === 'server-input') {
snapPoints = ServerInputModal.snapPoints
element = (
<ServerInputModal.Component
{...(store.shell.activeModal as models.ServerInputModel)}
/>
)
} else {
element = <View />
}