Add WIP 'report post' modal

This commit is contained in:
Paul Frazee
2022-12-18 17:28:28 -06:00
parent e325b72c62
commit 09765a5d36
7 changed files with 211 additions and 2 deletions
+11 -1
View File
@@ -51,6 +51,14 @@ export class ServerInputModal {
}
}
export class ReportPostModal {
name = 'report-post'
constructor(public postUrl: string) {
makeAutoObservable(this)
}
}
interface LightboxModel {
canSwipeLeft: boolean
canSwipeRight: boolean
@@ -127,6 +135,7 @@ export class ShellUiModel {
| EditProfileModal
| CreateSceneModal
| ServerInputModal
| ReportPostModal
| undefined
isLightboxActive = false
activeLightbox:
@@ -154,7 +163,8 @@ export class ShellUiModel {
| ConfirmModal
| EditProfileModal
| CreateSceneModal
| ServerInputModal,
| ServerInputModal
| ReportPostModal,
) {
this.isModalActive = true
this.activeModal = modal