From 4e56d24a9d72da4e7c3ddac6ae85b3913f2b365b Mon Sep 17 00:00:00 2001
From: Paul Frazee <pfrazee@gmail.com>
Date: Wed, 17 May 2023 14:34:37 -0500
Subject: Dont show save button in embed cards

---
 src/view/com/feeds/CustomFeed.tsx | 31 +++++++++++++++++--------------
 1 file changed, 17 insertions(+), 14 deletions(-)

(limited to 'src/view/com/feeds/CustomFeed.tsx')

diff --git a/src/view/com/feeds/CustomFeed.tsx b/src/view/com/feeds/CustomFeed.tsx
index cc9b66086..e4e0d50c2 100644
--- a/src/view/com/feeds/CustomFeed.tsx
+++ b/src/view/com/feeds/CustomFeed.tsx
@@ -24,11 +24,13 @@ export const CustomFeed = observer(
   ({
     item,
     style,
+    showSaveBtn = false,
     showLikes = false,
     reloadOnFocus = false,
   }: {
     item: CustomFeedModel
     style?: StyleProp<ViewStyle>
+    showSaveBtn?: boolean
     showLikes?: boolean
     reloadOnFocus?: boolean
   }) => {
@@ -66,21 +68,22 @@ export const CustomFeed = observer(
             <Text style={[pal.text, s.bold]}>
               {item.data.displayName ?? 'Feed name'}
             </Text>
-            <Text style={[pal.textLight]}>by @{item.data.creator.handle}</Text>
-          </View>
-          <View>
-            <Button
-              type={item.isSaved ? 'default' : 'inverted'}
-              onPress={() => {
-                if (item.data.viewer?.saved) {
-                  store.me.savedFeeds.unsave(item)
-                } else {
-                  store.me.savedFeeds.save(item)
-                }
-              }}
-              label={item.data.viewer?.saved ? 'Unsave' : 'Save'}
-            />
           </View>
+          {showSaveBtn && (
+            <View>
+              <Button
+                type={item.isSaved ? 'default' : 'inverted'}
+                onPress={() => {
+                  if (item.data.viewer?.saved) {
+                    store.me.savedFeeds.unsave(item)
+                  } else {
+                    store.me.savedFeeds.save(item)
+                  }
+                }}
+                label={item.data.viewer?.saved ? 'Unsave' : 'Save'}
+              />
+            </View>
+          )}
         </View>
 
         {item.data.description ? (
-- 
cgit 1.4.1

