about summary refs log tree commit diff
path: root/src/view/shell/mobile/Composer.tsx
diff options
context:
space:
mode:
authorAnsh <anshnanda10@gmail.com>2023-03-02 16:09:48 -0800
committerGitHub <noreply@github.com>2023-03-02 18:09:48 -0600
commit75174a6c37a01282b8bd1389fee3fb00488dcf0d (patch)
tree6ced8feb720a2ccd4c3978740f22ce2ec7e59ccc /src/view/shell/mobile/Composer.tsx
parentf539659ac8eb0857e888ea2a972f78305a42e201 (diff)
downloadvoidsky-75174a6c37a01282b8bd1389fee3fb00488dcf0d.tar.zst
73-post-embeds (#253)
* update api to 0.1.3

* add repost modal with reposting functionality

* add quote post UI

* allow creation and view of quote posts

* Validate the post record before rendering a quote post

* Use createdAt in quote posts for now

* add web modal support

* Tune the quote post rendering

* Make did and declarationCid optional in postmeta

* Make did and declarationCid optional in postmeta

* dont allow image or link preview if quote post

* Handle no-text quote posts

* Tune the repost modal

* Tweak composer post text

* Fix lint

---------

Co-authored-by: Paul Frazee <pfrazee@gmail.com>
Diffstat (limited to 'src/view/shell/mobile/Composer.tsx')
-rw-r--r--src/view/shell/mobile/Composer.tsx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/view/shell/mobile/Composer.tsx b/src/view/shell/mobile/Composer.tsx
index 304c17725..5fca118bd 100644
--- a/src/view/shell/mobile/Composer.tsx
+++ b/src/view/shell/mobile/Composer.tsx
@@ -14,6 +14,7 @@ export const Composer = observer(
     imagesOpen,
     onPost,
     onClose,
+    quote,
   }: {
     active: boolean
     winHeight: number
@@ -21,6 +22,7 @@ export const Composer = observer(
     imagesOpen?: ComposerOpts['imagesOpen']
     onPost?: ComposerOpts['onPost']
     onClose: () => void
+    quote?: ComposerOpts['quote']
   }) => {
     const pal = usePalette('default')
     const initInterp = useAnimatedValue(0)
@@ -62,6 +64,7 @@ export const Composer = observer(
           imagesOpen={imagesOpen}
           onPost={onPost}
           onClose={onClose}
+          quote={quote}
         />
       </Animated.View>
     )