about summary refs log tree commit diff
path: root/src/state/models/shell-ui.ts
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2022-11-23 13:28:29 -0600
committerPaul Frazee <pfrazee@gmail.com>2022-11-23 13:28:29 -0600
commitfbcf0d79d11e70c89995e62db97e5a20dc3b1475 (patch)
tree72ee119e23c6c94558b2816a81477989a845d42f /src/state/models/shell-ui.ts
parent0840c3f8f7ea491ec9c7f4ff11a7becf21435dd0 (diff)
downloadvoidsky-fbcf0d79d11e70c89995e62db97e5a20dc3b1475.tar.zst
Show parent post in composer when replying (close #3)
Diffstat (limited to 'src/state/models/shell-ui.ts')
-rw-r--r--src/state/models/shell-ui.ts12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/state/models/shell-ui.ts b/src/state/models/shell-ui.ts
index 13d720730..fa8e3c18f 100644
--- a/src/state/models/shell-ui.ts
+++ b/src/state/models/shell-ui.ts
@@ -1,6 +1,5 @@
 import {makeAutoObservable} from 'mobx'
 import {ProfileViewModel} from './profile-view'
-import * as Post from '../../third-party/api/src/client/types/app/bsky/feed/post'
 
 export class ConfirmModel {
   name = 'confirm'
@@ -52,8 +51,17 @@ export class ServerInputModel {
   }
 }
 
+export interface ComposerOptsPostRef {
+  uri: string
+  cid: string
+  text: string
+  author: {
+    handle: string
+    displayName?: string
+  }
+}
 export interface ComposerOpts {
-  replyTo?: Post.PostRef
+  replyTo?: ComposerOptsPostRef
   onPost?: () => void
 }