Skip to content

Commit 6a23f7b

Browse files
committed
refactor: update CardItemWithActionsProps type to define item structure explicitly
1 parent 701cb26 commit 6a23f7b

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/components/Elements/CardWithActions/CardItemWithActions.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,13 @@ import { ShareModalData } from 'src/features/shareModal/types'
77
import { Attributes, trackLinkBookmark, trackLinkUnBookmark } from 'src/lib/analytics'
88
import { useBookmarks } from 'src/stores/bookmarks'
99
import { useUserPreferences } from 'src/stores/preferences'
10-
import { BaseEntry } from 'src/types'
1110

1211
type CardItemWithActionsProps = {
13-
item: BaseEntry
12+
item: {
13+
title: string
14+
url: string
15+
id: string
16+
}
1417
source: string
1518
cardItem: React.ReactNode
1619
sourceType?: 'rss' | 'supported'

0 commit comments

Comments
 (0)