diff --git a/src/components/Me.tsx b/src/components/Me.tsx index 2e4aa80a..1085b109 100644 --- a/src/components/Me.tsx +++ b/src/components/Me.tsx @@ -2,6 +2,7 @@ import React, { useState, useEffect, useRef } from 'react' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faSpinner, faExclamationCircle, 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' import { nip19 } from 'nostr-tools' import { useNavigate } from 'react-router-dom' @@ -198,9 +199,24 @@ const Me: React.FC = ({ relayPool, activeTab: propActiveTab, pubkey: pr if (loading && !hasData) { return ( -
-
- +
+
+ +
+
+ {activeTab === 'writings' ? ( + Array.from({ length: 6 }).map((_, i) => ( + + )) + ) : activeTab === 'highlights' ? ( + Array.from({ length: 8 }).map((_, i) => ( + + )) + ) : ( + Array.from({ length: 6 }).map((_, i) => ( + + )) + )}
)