diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-11-15 15:09:50 -0600 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-11-15 15:09:50 -0600 |
commit | 3725a2eed10707194bc9554a9c58166e9324dfc8 (patch) | |
tree | f167b4541f86eb5b9ff8629c0bbb6486644f498b /src/view/com/modals/Modal.tsx | |
parent | 9a6df95adecaf3935fdbd58d893fca6489a040b9 (diff) | |
download | voidsky-3725a2eed10707194bc9554a9c58166e9324dfc8.tar.zst |
Add a server instance selector and drop env vars
Diffstat (limited to 'src/view/com/modals/Modal.tsx')
-rw-r--r-- | src/view/com/modals/Modal.tsx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/view/com/modals/Modal.tsx b/src/view/com/modals/Modal.tsx index f2c61a6ae..210cdc41f 100644 --- a/src/view/com/modals/Modal.tsx +++ b/src/view/com/modals/Modal.tsx @@ -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 /> } |