From 66a0f8e848342bb5e5ceda36f5095f3ad2b0de29 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Sun, 18 Dec 2022 17:28:28 -0600 Subject: Add WIP 'report post' modal --- src/state/models/shell-ui.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/state/models/shell-ui.ts') diff --git a/src/state/models/shell-ui.ts b/src/state/models/shell-ui.ts index fa2e78d5b..d1f458546 100644 --- a/src/state/models/shell-ui.ts +++ b/src/state/models/shell-ui.ts @@ -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 -- cgit 1.4.1