From 951a3699cae1cd9c6060f20f266e2d16d705fcd1 Mon Sep 17 00:00:00 2001 From: Gigi Date: Thu, 16 Oct 2025 01:21:31 +0200 Subject: [PATCH] fix: replace spinners with skeleton placeholders in Me tabs - Replace spinner in highlights tab with 'No highlights yet' message - Replace spinner in reading-list tab with 'No bookmarks yet' message - Only show these messages when loading is complete and arrays are empty - Remove unused faSpinner import - Consistent with skeleton placeholder pattern used elsewhere --- src/components/Me.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/Me.tsx b/src/components/Me.tsx index 1b046e38..a82b6198 100644 --- a/src/components/Me.tsx +++ b/src/components/Me.tsx @@ -1,6 +1,6 @@ import React, { useState, useEffect } from 'react' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' -import { faSpinner, faHighlighter, faBookmark, faList, faThLarge, faImage, faPenToSquare } from '@fortawesome/free-solid-svg-icons' +import { faHighlighter, faBookmark, faList, faThLarge, faImage, faPenToSquare } from '@fortawesome/free-solid-svg-icons' import { Hooks } from 'applesauce-react' import { BlogPostSkeleton, HighlightSkeleton, BookmarkSkeleton } from './Skeletons' import { RelayPool } from 'applesauce-relay' @@ -347,9 +347,9 @@ const Me: React.FC = ({ relayPool, activeTab: propActiveTab, pubkey: pr ) } - return highlights.length === 0 ? ( + return highlights.length === 0 && !loading ? (
- + No highlights yet.
) : (
@@ -376,9 +376,9 @@ const Me: React.FC = ({ relayPool, activeTab: propActiveTab, pubkey: pr
) } - return allIndividualBookmarks.length === 0 ? ( + return allIndividualBookmarks.length === 0 && !loading ? (
- + No bookmarks yet.
) : (