From d3707f30e30bb717e95b27cc83a1121815b475b5 Mon Sep 17 00:00:00 2001
From: Paul Frazee <pfrazee@gmail.com>
Date: Thu, 10 Nov 2022 16:30:14 -0600
Subject: Implement scene invitation and membership controls

---
 src/view/com/modals/Modal.tsx | 28 ++++++++++++++++++++++------
 1 file changed, 22 insertions(+), 6 deletions(-)

(limited to 'src/view/com/modals/Modal.tsx')

diff --git a/src/view/com/modals/Modal.tsx b/src/view/com/modals/Modal.tsx
index f79a571d4..f2c61a6ae 100644
--- a/src/view/com/modals/Modal.tsx
+++ b/src/view/com/modals/Modal.tsx
@@ -8,9 +8,11 @@ import {createCustomBackdrop} from '../util/BottomSheetCustomBackdrop'
 import * as models from '../../../state/models/shell-ui'
 
 import * as LinkActionsModal from './LinkActions'
+import * as ConfirmModal from './Confirm'
 import * as SharePostModal from './SharePost.native'
-import * as EditProfile from './EditProfile'
-import * as CreateScene from './CreateScene'
+import * as EditProfileModal from './EditProfile'
+import * as CreateSceneModal from './CreateScene'
+import * as InviteToSceneModal from './InviteToScene'
 
 const CLOSED_SNAPPOINTS = ['10%']
 
@@ -44,6 +46,13 @@ export const Modal = observer(function Modal() {
         {...(store.shell.activeModal as models.LinkActionsModel)}
       />
     )
+  } else if (store.shell.activeModal?.name === 'confirm') {
+    snapPoints = ConfirmModal.snapPoints
+    element = (
+      <ConfirmModal.Component
+        {...(store.shell.activeModal as models.ConfirmModel)}
+      />
+    )
   } else if (store.shell.activeModal?.name === 'share-post') {
     snapPoints = SharePostModal.snapPoints
     element = (
@@ -52,15 +61,22 @@ export const Modal = observer(function Modal() {
       />
     )
   } else if (store.shell.activeModal?.name === 'edit-profile') {
-    snapPoints = EditProfile.snapPoints
+    snapPoints = EditProfileModal.snapPoints
     element = (
-      <EditProfile.Component
+      <EditProfileModal.Component
         {...(store.shell.activeModal as models.EditProfileModel)}
       />
     )
   } else if (store.shell.activeModal?.name === 'create-scene') {
-    snapPoints = CreateScene.snapPoints
-    element = <CreateScene.Component />
+    snapPoints = CreateSceneModal.snapPoints
+    element = <CreateSceneModal.Component />
+  } else if (store.shell.activeModal?.name === 'invite-to-scene') {
+    snapPoints = InviteToSceneModal.snapPoints
+    element = (
+      <InviteToSceneModal.Component
+        {...(store.shell.activeModal as models.InviteToSceneModel)}
+      />
+    )
   } else {
     element = <View />
   }
-- 
cgit 1.4.1

