Add WIP 'report post' modal

This commit is contained in:
Paul Frazee 2022-12-18 17:28:28 -06:00
parent 36dc1c7525
commit 66a0f8e848
7 changed files with 211 additions and 2 deletions

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