fix: make bookmarksLoading optional in Me component

Made bookmarksLoading prop optional in MeProps since it's not currently used.
Reserved for future use when we want to show centralized loading state.

All linting and type checks now pass.
This commit is contained in:
Gigi
2025-10-17 22:52:16 +02:00
parent 8a971dfe52
commit 2e70745bab

View File

@@ -37,7 +37,7 @@ interface MeProps {
activeTab?: TabType
pubkey?: string // Optional pubkey for viewing other users' profiles
bookmarks: Bookmark[] // From centralized App.tsx state
bookmarksLoading: boolean // From centralized App.tsx state
bookmarksLoading?: boolean // From centralized App.tsx state (reserved for future use)
}
type TabType = 'highlights' | 'reading-list' | 'reads' | 'links' | 'writings'
@@ -49,8 +49,7 @@ const Me: React.FC<MeProps> = ({
relayPool,
activeTab: propActiveTab,
pubkey: propPubkey,
bookmarks,
bookmarksLoading
bookmarks
}) => {
const activeAccount = Hooks.useActiveAccount()
const navigate = useNavigate()