Skip to content

⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.

feat(mobile): add loader to preview

daniel31x13257bdf987760
diff --git a/apps/mobile/components/LinkListing.tsx b/apps/mobile/components/LinkListing.tsx
index 29558121..2b08dfe8 100644
--- a/apps/mobile/components/LinkListing.tsx
+++ b/apps/mobile/components/LinkListing.tsx
@@ -1,4 +1,12 @@
-import { View, Text, Image, Pressable, Platform, Alert } from "react-native";
+import {
+ View,
+ Text,
+ Image,
+ Pressable,
+ Platform,
+ Alert,
+ ActivityIndicator,
+} from "react-native";
import { decode } from "html-entities";
import { LinkIncludingShortenedCollectionAndTags } from "@linkwarden/types";
import { ArchivedFormat } from "@linkwarden/types";
@@ -117,6 +125,11 @@ const LinkListing = ({ link, dashboard }: Props) => {
}}
className="rounded-md h-[60px] w-[90px] object-cover scale-105"
/>
+ ) : !link.preview ? (
+ <ActivityIndicator
+ size="small"
+ className="h-[60px] w-[90px]"
+ />
) : (
<View className="h-[60px] w-[90px]" />
)}