Implement account deletion (#141)

This commit is contained in:
Paul Frazee
2023-02-02 18:28:42 -06:00
committed by GitHub
parent 99272c0ec1
commit 9e71a50a1d
10 changed files with 265 additions and 11 deletions
+11 -1
View File
@@ -52,6 +52,14 @@ export class ReportAccountModal {
}
}
export class DeleteAccountModal {
name = 'delete-account'
constructor() {
makeAutoObservable(this)
}
}
interface LightboxModel {}
export class ProfileImageLightbox implements LightboxModel {
@@ -98,6 +106,7 @@ export class ShellUiModel {
| ServerInputModal
| ReportPostModal
| ReportAccountModal
| DeleteAccountModal
| undefined
isLightboxActive = false
activeLightbox: ProfileImageLightbox | ImagesLightbox | undefined
@@ -140,7 +149,8 @@ export class ShellUiModel {
| EditProfileModal
| ServerInputModal
| ReportPostModal
| ReportAccountModal,
| ReportAccountModal
| DeleteAccountModal,
) {
this.isModalActive = true
this.activeModal = modal