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