aboutsummaryrefslogtreecommitdiffstats
path: root/apps/mobile/app/sharing.tsx
diff options
context:
space:
mode:
authorMohamed Bassem <me@mbassem.com>2024-11-24 16:03:45 +0000
committerGitHub <noreply@github.com>2024-11-24 16:03:45 +0000
commitfd4a99678cd222941cc66de5d7fcd5f7615f375d (patch)
tree53230b11ef0ee315a8e7574c07b9c1fdbb4834e5 /apps/mobile/app/sharing.tsx
parentd32457e84dda26c0ef63eec6125291d14fa37eb4 (diff)
downloadkarakeep-fd4a99678cd222941cc66de5d7fcd5f7615f375d.tar.zst
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
Diffstat (limited to 'apps/mobile/app/sharing.tsx')
-rw-r--r--apps/mobile/app/sharing.tsx35
1 files changed, 10 insertions, 25 deletions
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>