about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJohn Fawcett <jrf0110@gmail.com>2023-03-18 19:44:39 -0500
committerGitHub <noreply@github.com>2023-03-18 19:44:39 -0500
commit30c54aa265d50c5d8d8f2e7f68a09e4e44c7c2b6 (patch)
tree849dbe7894ee98cf0144f39791fbd5bc6680c197
parentc50a20d2147b9d6122768385ef00f4da783af12e (diff)
downloadvoidsky-30c54aa265d50c5d8d8f2e7f68a09e4e44c7c2b6.tar.zst
Fixes quote post not showing up in quote post composer (#315) (#318)
-rw-r--r--src/lib/icons.tsx2
-rw-r--r--src/view/com/modals/Repost.tsx2
-rw-r--r--src/view/shell/Composer.web.tsx9
-rw-r--r--src/view/shell/index.web.tsx1
4 files changed, 11 insertions, 3 deletions
diff --git a/src/lib/icons.tsx b/src/lib/icons.tsx
index fd233f99c..300c13b0d 100644
--- a/src/lib/icons.tsx
+++ b/src/lib/icons.tsx
@@ -420,7 +420,7 @@ export function RepostIcon({
   size = 24,
   strokeWidth = 1.5,
 }: {
-  style?: StyleProp<ViewStyle>
+  style?: StyleProp<TextStyle>
   size?: string | number
   strokeWidth: number
 }) {
diff --git a/src/view/com/modals/Repost.tsx b/src/view/com/modals/Repost.tsx
index 6ab15317b..b4669a046 100644
--- a/src/view/com/modals/Repost.tsx
+++ b/src/view/com/modals/Repost.tsx
@@ -29,7 +29,7 @@ export function Component({
     <View style={[s.flex1, pal.view, styles.container]}>
       <View style={s.pb20}>
         <TouchableOpacity style={[styles.actionBtn]} onPress={onRepost}>
-          <RepostIcon strokeWidth={2} size={24} />
+          <RepostIcon strokeWidth={2} size={24} style={s.blue3} />
           <Text type="title-lg" style={[styles.actionBtnLabel, pal.text]}>
             {!isReposted ? 'Repost' : 'Undo repost'}
           </Text>
diff --git a/src/view/shell/Composer.web.tsx b/src/view/shell/Composer.web.tsx
index c165c2a15..e3994bb23 100644
--- a/src/view/shell/Composer.web.tsx
+++ b/src/view/shell/Composer.web.tsx
@@ -9,12 +9,14 @@ export const Composer = observer(
   ({
     active,
     replyTo,
+    quote,
     onPost,
     onClose,
   }: {
     active: boolean
     winHeight: number
     replyTo?: ComposerOpts['replyTo']
+    quote: ComposerOpts['quote']
     onPost?: ComposerOpts['onPost']
     onClose: () => void
   }) => {
@@ -30,7 +32,12 @@ export const Composer = observer(
     return (
       <View style={styles.mask}>
         <View style={[styles.container, pal.view]}>
-          <ComposePost replyTo={replyTo} onPost={onPost} onClose={onClose} />
+          <ComposePost
+            replyTo={replyTo}
+            quote={quote}
+            onPost={onPost}
+            onClose={onClose}
+          />
         </View>
       </View>
     )
diff --git a/src/view/shell/index.web.tsx b/src/view/shell/index.web.tsx
index 54aba48f0..24cce188c 100644
--- a/src/view/shell/index.web.tsx
+++ b/src/view/shell/index.web.tsx
@@ -33,6 +33,7 @@ const ShellInner = observer(() => {
         onClose={() => store.shell.closeComposer()}
         winHeight={0}
         replyTo={store.shell.composerOpts?.replyTo}
+        quote={store.shell.composerOpts?.quote}
         onPost={store.shell.composerOpts?.onPost}
       />
       <ModalsContainer />