From d2ebcd8fbe0a5525da22d7fd3512861fc0ca76b1 Mon Sep 17 00:00:00 2001 From: Gigi Date: Sun, 12 Oct 2025 23:25:05 +0200 Subject: [PATCH] ux(explore): keep posts visible during refresh; inline spinner; no list wipe --- src/components/Explore.tsx | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/components/Explore.tsx b/src/components/Explore.tsx index 91ee344d..e871217b 100644 --- a/src/components/Explore.tsx +++ b/src/components/Explore.tsx @@ -110,17 +110,6 @@ const Explore: React.FC = ({ relayPool }) => { return `/a/${naddr}` } - if (loading) { - return ( -
-
- -

Loading blog posts from your friends...

-
-
- ) - } - if (error) { return (
@@ -143,6 +132,12 @@ const Explore: React.FC = ({ relayPool }) => { Discover blog posts from your friends on Nostr

+ {loading && ( +
+ + Refreshing posts… +
+ )}
{blogPosts.map((post) => ( = ({ relayPool }) => { href={getPostUrl(post)} /> ))} + {!loading && blogPosts.length === 0 && ( +
+

No blog posts found yet.

+
+ )}
)