From a03f1dc2ac25579df30e8cb59d2703110c3e564d Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Wed, 13 Mar 2024 22:37:41 +0000 Subject: lint: Lint and format the entire repo with the new configs --- apps/mobile/components/bookmarks/BookmarkCard.tsx | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'apps/mobile/components/bookmarks/BookmarkCard.tsx') diff --git a/apps/mobile/components/bookmarks/BookmarkCard.tsx b/apps/mobile/components/bookmarks/BookmarkCard.tsx index 25947790..93a059f8 100644 --- a/apps/mobile/components/bookmarks/BookmarkCard.tsx +++ b/apps/mobile/components/bookmarks/BookmarkCard.tsx @@ -1,16 +1,16 @@ -import { ZBookmark } from "@hoarder/trpc/types/bookmarks"; -import * as WebBrowser from "expo-web-browser"; -import { Star, Archive, Trash, ArchiveRestore } from "lucide-react-native"; -import { View, Text, Image, ScrollView, Pressable } from "react-native"; +import { Image, Pressable, ScrollView, Text, View } from "react-native"; import Markdown from "react-native-markdown-display"; +import * as WebBrowser from "expo-web-browser"; +import { api } from "@/lib/trpc"; +import { Archive, ArchiveRestore, Star, Trash } from "lucide-react-native"; + +import type { ZBookmark } from "@hoarder/trpc/types/bookmarks"; import { ActionButton } from "../ui/ActionButton"; import { Divider } from "../ui/Divider"; import { Skeleton } from "../ui/Skeleton"; import { useToast } from "../ui/Toast"; -import { api } from "@/lib/trpc"; - const MAX_LOADING_MSEC = 30 * 1000; export function isBookmarkStillCrawling(bookmark: ZBookmark) { @@ -155,6 +155,7 @@ function LinkCard({ bookmark }: { bookmark: ZBookmark }) { /> ) : ( @@ -168,7 +169,7 @@ function LinkCard({ bookmark }: { bookmark: ZBookmark }) { className="line-clamp-2 text-xl font-bold" onPress={() => WebBrowser.openBrowserAsync(url)} > - {bookmark.content.title || parsedUrl.host} + {bookmark.content.title ?? parsedUrl.host} -- cgit v1.2.3-70-g09d2