diff --git a/app/lish/[did]/[publication]/[rkey]/Interactions/Quotes.tsx b/app/lish/[did]/[publication]/[rkey]/Interactions/Quotes.tsx index 0621d14a..65cb79d2 100644 --- a/app/lish/[did]/[publication]/[rkey]/Interactions/Quotes.tsx +++ b/app/lish/[did]/[publication]/[rkey]/Interactions/Quotes.tsx @@ -48,7 +48,9 @@ async function fetchBskyPosts(uris: string[]): Promise { } // Prefetch quotes data -export function prefetchQuotesData(quotesAndMentions: { uri: string; link?: string }[]) { +export function prefetchQuotesData( + quotesAndMentions: { uri: string; link?: string }[], +) { const uris = quotesAndMentions.map((q) => q.uri); const key = getQuotesSWRKey(uris); if (key) { @@ -69,9 +71,8 @@ export const Quotes = (props: { // Fetch Bluesky post data for all URIs const uris = props.quotesAndMentions.map((q) => q.uri); const key = getQuotesSWRKey(uris); - const { data: bskyPosts, isLoading } = useSWR( - key, - () => fetchBskyPosts(uris), + const { data: bskyPosts, isLoading } = useSWR(key, () => + fetchBskyPosts(uris), ); // Separate quotes with links (quoted content) from direct mentions @@ -141,7 +142,7 @@ export const Quotes = (props: { {/* Direct post mentions (without quoted content) */} {directMentions.length > 0 && (
-

Post Mentions

+
Post Mentions
{directMentions.map((q, index) => { const pv = postViewMap.get(q.uri);