From d3d22d69eff4130acf75c3a90fbf97eb5c659fb2 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sun, 28 Sep 2025 00:15:09 +0000 Subject: [PATCH] Prettier format pending files --- client/components/PageTransition.tsx | 4 +++- client/pages/Feed.tsx | 15 ++++++++++++--- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/client/components/PageTransition.tsx b/client/components/PageTransition.tsx index 94b0b86c..845cd89b 100644 --- a/client/components/PageTransition.tsx +++ b/client/components/PageTransition.tsx @@ -16,7 +16,9 @@ export default function PageTransition({ children }: PageTransitionProps) { }, [location.pathname]); return ( -
+
{children}
); diff --git a/client/pages/Feed.tsx b/client/pages/Feed.tsx index fabafa8c..e3687291 100644 --- a/client/pages/Feed.tsx +++ b/client/pages/Feed.tsx @@ -93,7 +93,10 @@ export default function Feed() { }); // If no posts yet, fall back to recommended people as placeholders if (mapped.length === 0) { - const recs = await aethexSocialService.listRecommended(user?.id || "guest", 12); + const recs = await aethexSocialService.listRecommended( + user?.id || "guest", + 12, + ); const placeholders: FeedItem[] = recs.map((r: any) => ({ id: r.id, authorId: r.id, @@ -122,9 +125,15 @@ export default function Feed() { let cleanup: any = null; try { const sub = realtimeService.subscribeToCommunityPosts(() => load()); - cleanup = () => { try { sub.unsubscribe?.(); } catch {} }; + cleanup = () => { + try { + sub.unsubscribe?.(); + } catch {} + }; } catch {} - return () => { cleanup?.(); }; + return () => { + cleanup?.(); + }; }, [user, loading]); const isFollowingAuthor = (id: string) => following.includes(id);