about summary refs log tree commit diff
path: root/src/view/com/modals/Modal.tsx
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-01-26 11:25:52 -0600
committerPaul Frazee <pfrazee@gmail.com>2023-01-26 11:25:52 -0600
commit7e3f6f030680a8cf7b5baa3ce6f33acd5766fca8 (patch)
tree38ad7a0c586caa6cd0635653cb812d602210b718 /src/view/com/modals/Modal.tsx
parentc4ba5e7fd507a2f5295fd3fcbcea0796223c744c (diff)
downloadvoidsky-7e3f6f030680a8cf7b5baa3ce6f33acd5766fca8.tar.zst
Fix all type errors
Diffstat (limited to 'src/view/com/modals/Modal.tsx')
-rw-r--r--src/view/com/modals/Modal.tsx12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/view/com/modals/Modal.tsx b/src/view/com/modals/Modal.tsx
index e0e18d54a..d0b40d56d 100644
--- a/src/view/com/modals/Modal.tsx
+++ b/src/view/com/modals/Modal.tsx
@@ -62,18 +62,10 @@ export const Modal = observer(function Modal() {
     )
   } else if (store.shell.activeModal?.name === 'report-post') {
     snapPoints = ReportPostModal.snapPoints
-    element = (
-      <ReportPostModal.Component
-        {...(store.shell.activeModal as models.ReportPostModal)}
-      />
-    )
+    element = <ReportPostModal.Component />
   } else if (store.shell.activeModal?.name === 'report-account') {
     snapPoints = ReportAccountModal.snapPoints
-    element = (
-      <ReportAccountModal.Component
-        {...(store.shell.activeModal as models.ReportAccountModal)}
-      />
-    )
+    element = <ReportAccountModal.Component />
   } else {
     element = <View />
   }