From c7f60955d94cf6657f9e9d4337230876dc1aba85 Mon Sep 17 00:00:00 2001
From: MohamedBassem <me@mbassem.com>
Date: Wed, 13 Mar 2024 05:15:04 +0000
Subject: mobile: Change bookmark cards images to not have any paddings

---
 packages/mobile/app/sharing.tsx | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

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

diff --git a/packages/mobile/app/sharing.tsx b/packages/mobile/app/sharing.tsx
index 5fb5ef8e..41c3212e 100644
--- a/packages/mobile/app/sharing.tsx
+++ b/packages/mobile/app/sharing.tsx
@@ -48,8 +48,6 @@ export default function Sharing() {
   const router = useRouter();
   const [mode, setMode] = useState<Mode>({ type: "idle" });
 
-  const isInModal = router.canGoBack();
-
   let comp;
   switch (mode.type) {
     case "idle": {
@@ -72,12 +70,8 @@ export default function Sharing() {
       return;
     }
 
-    if (!isInModal) {
-      return;
-    }
-
     const timeoutId = setTimeout(() => {
-      router.replace("../");
+      router.replace("dashboard");
     }, 2000);
 
     return () => clearTimeout(timeoutId);
@@ -86,7 +80,7 @@ export default function Sharing() {
   return (
     <View className="flex-1 items-center justify-center gap-4">
       {comp}
-      {isInModal ? <Link href="../">Dismiss</Link> : <Link href="/">Home</Link>}
+      <Link href="dashboard">Dismiss</Link>
     </View>
   );
 }
-- 
cgit v1.2.3-70-g09d2

