diff options
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 /> } |