fix: resolve TypeScript errors from merge

- Remove unused readingPositions and markedAsReadIds from useBookmarksData
- Remove eventStore parameter from useBookmarksData call
- Add reads and links fields to MeCache interface
This commit is contained in:
Gigi
2025-10-16 09:53:20 +02:00
parent adef1a922c
commit c50aa3a243
2 changed files with 5 additions and 7 deletions

View File

@@ -162,9 +162,7 @@ const Bookmarks: React.FC<BookmarksProps> = ({ relayPool, onLogout }) => {
isRefreshing, isRefreshing,
lastFetchTime, lastFetchTime,
handleFetchHighlights, handleFetchHighlights,
handleRefreshAll, handleRefreshAll
readingPositions,
markedAsReadIds
} = useBookmarksData({ } = useBookmarksData({
relayPool, relayPool,
activeAccount, activeAccount,
@@ -173,8 +171,7 @@ const Bookmarks: React.FC<BookmarksProps> = ({ relayPool, onLogout }) => {
externalUrl, externalUrl,
currentArticleCoordinate, currentArticleCoordinate,
currentArticleEventId, currentArticleEventId,
settings, settings
eventStore
}) })
const { const {
@@ -316,8 +313,6 @@ const Bookmarks: React.FC<BookmarksProps> = ({ relayPool, onLogout }) => {
highlightButtonRef={highlightButtonRef} highlightButtonRef={highlightButtonRef}
onCreateHighlight={handleCreateHighlight} onCreateHighlight={handleCreateHighlight}
hasActiveAccount={!!(activeAccount && relayPool)} hasActiveAccount={!!(activeAccount && relayPool)}
readingPositions={readingPositions}
markedAsReadIds={markedAsReadIds}
explore={showExplore ? ( explore={showExplore ? (
relayPool ? <Explore relayPool={relayPool} eventStore={eventStore} settings={settings} activeTab={exploreTab} /> : null relayPool ? <Explore relayPool={relayPool} eventStore={eventStore} settings={settings} activeTab={exploreTab} /> : null
) : undefined} ) : undefined}

View File

@@ -1,11 +1,14 @@
import { Highlight } from '../types/highlights' import { Highlight } from '../types/highlights'
import { Bookmark } from '../types/bookmarks' import { Bookmark } from '../types/bookmarks'
import { BlogPostPreview } from './exploreService' import { BlogPostPreview } from './exploreService'
import { ReadItem } from './readsService'
export interface MeCache { export interface MeCache {
highlights: Highlight[] highlights: Highlight[]
bookmarks: Bookmark[] bookmarks: Bookmark[]
readArticles: BlogPostPreview[] readArticles: BlogPostPreview[]
reads?: ReadItem[]
links?: ReadItem[]
timestamp: number timestamp: number
} }