Add WIP 'report post' modal
This commit is contained in:
parent
36dc1c7525
commit
66a0f8e848
7 changed files with 211 additions and 2 deletions
|
@ -12,6 +12,7 @@ import * as EditProfileModal from './EditProfile'
|
|||
import * as CreateSceneModal from './CreateScene'
|
||||
import * as InviteToSceneModal from './InviteToScene'
|
||||
import * as ServerInputModal from './ServerInput'
|
||||
import * as ReportPostModal from './ReportPost'
|
||||
|
||||
const CLOSED_SNAPPOINTS = ['10%']
|
||||
|
||||
|
@ -70,6 +71,13 @@ export const Modal = observer(function Modal() {
|
|||
{...(store.shell.activeModal as models.ServerInputModal)}
|
||||
/>
|
||||
)
|
||||
} else if (store.shell.activeModal?.name === 'report-post') {
|
||||
snapPoints = ReportPostModal.snapPoints
|
||||
element = (
|
||||
<ReportPostModal.Component
|
||||
{...(store.shell.activeModal as models.ReportPostModal)}
|
||||
/>
|
||||
)
|
||||
} else {
|
||||
element = <View />
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue