From fd4a99678cd222941cc66de5d7fcd5f7615f375d Mon Sep 17 00:00:00 2001
From: Mohamed Bassem <me@mbassem.com>
Date: Sun, 24 Nov 2024 16:03:45 +0000
Subject: deps(mobile): Upgrade to Expo 52 (#692)

* fix(mobile): Sharing bookmark modal

* WIP: Upgrade to 52

* post ugprade fixes

* more fixes

* fix padding in tabbar
---
 apps/mobile/app/sharing.tsx | 35 ++++++++++-------------------------
 1 file changed, 10 insertions(+), 25 deletions(-)

(limited to 'apps/mobile/app/sharing.tsx')

diff --git a/apps/mobile/app/sharing.tsx b/apps/mobile/app/sharing.tsx
index 3551aea9..e2e1823b 100644
--- a/apps/mobile/app/sharing.tsx
+++ b/apps/mobile/app/sharing.tsx
@@ -52,7 +52,7 @@ function SaveBookmark({ setMode }: { setMode: (mode: Mode) => void }) {
       }
     } else if (!isPending && shareIntent?.files) {
       uploadAsset({
-        type: shareIntent.files[0].type,
+        type: shareIntent.files[0].mimeType,
         name: shareIntent.files[0].fileName ?? "",
         uri: shareIntent.files[0].path,
       });
@@ -96,30 +96,15 @@ export default function Sharing() {
           <Text className="text-4xl text-foreground">
             {mode.type === "alreadyExists" ? "Already Hoarded!" : "Hoarded!"}
           </Text>
-          <View className="flex flex-row gap-2">
-            <Button
-              label="Add to List"
-              onPress={() => {
-                router.push(
-                  `/dashboard/bookmarks/${mode.bookmarkId}/manage_lists`,
-                );
-                if (autoCloseTimeoutId) {
-                  clearTimeout(autoCloseTimeoutId);
-                }
-              }}
-            />
-            <Button
-              label="Manage Tags"
-              onPress={() => {
-                router.push(
-                  `/dashboard/bookmarks/${mode.bookmarkId}/manage_tags`,
-                );
-                if (autoCloseTimeoutId) {
-                  clearTimeout(autoCloseTimeoutId);
-                }
-              }}
-            />
-          </View>
+          <Button
+            label="Manage"
+            onPress={() => {
+              router.replace(`/dashboard/bookmarks/${mode.bookmarkId}/info`);
+              if (autoCloseTimeoutId) {
+                clearTimeout(autoCloseTimeoutId);
+              }
+            }}
+          />
           <Pressable onPress={() => router.replace("dashboard")}>
             <Text className="text-muted-foreground">Dismiss</Text>
           </Pressable>
-- 
cgit v1.2.3-70-g09d2

