diff options
| author | MohamedBassem <me@mbassem.com> | 2024-03-22 22:34:28 +0000 |
|---|---|---|
| committer | MohamedBassem <me@mbassem.com> | 2024-03-22 22:34:47 +0000 |
| commit | 7926ec189cc43b5c60ccf3f2a055e5576fab55db (patch) | |
| tree | d96c1e3f122e732dd29cbc7551ad959ab48f80f0 | |
| parent | 105759b7519f4f34783c344152c2df5afedd24c5 (diff) | |
| download | karakeep-7926ec189cc43b5c60ccf3f2a055e5576fab55db.tar.zst | |
fix(mobile): Minor tweaks to the sharing screen
| -rw-r--r-- | apps/mobile/app/sharing.tsx | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/apps/mobile/app/sharing.tsx b/apps/mobile/app/sharing.tsx index 2f9dbb27..c178d69e 100644 --- a/apps/mobile/app/sharing.tsx +++ b/apps/mobile/app/sharing.tsx @@ -1,11 +1,12 @@ import { useEffect, useState } from "react"; -import { Text, View } from "react-native"; -import { Link, useRouter } from "expo-router"; +import { ActivityIndicator, Text, View } from "react-native"; +import { useRouter } from "expo-router"; import { useShareIntentContext } from "expo-share-intent"; import useAppSettings from "@/lib/settings"; import { api } from "@/lib/trpc"; import { useUploadAsset } from "@/lib/upload"; import { z } from "zod"; + import type { ZBookmark } from "@hoarder/trpc/types/bookmarks"; type Mode = @@ -63,7 +64,12 @@ function SaveBookmark({ setMode }: { setMode: (mode: Mode) => void }) { }, }); - return <Text className="text-4xl">Hoarding ...</Text>; + return ( + <View className="flex flex-row gap-3"> + <Text className="text-4xl">Hoarding</Text> + <ActivityIndicator /> + </View> + ); } export default function Sharing() { @@ -100,9 +106,6 @@ export default function Sharing() { }, [mode.type]); return ( - <View className="flex-1 items-center justify-center gap-4"> - {comp} - <Link href="dashboard">Dismiss</Link> - </View> + <View className="flex-1 items-center justify-center gap-4">{comp}</View> ); } |
