Skip to content

Commit 449b680

Browse files
committed
refactor: remove unused index prop from CardItemWithActions component
1 parent 51819a0 commit 449b680

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/components/Elements/CardWithActions/CardItemWithActions.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import { BaseEntry } from 'src/types'
1111

1212
type CardItemWithActionsProps = {
1313
item: BaseEntry
14-
index: number
1514
source: string
1615
cardItem: React.ReactNode
1716
sourceType?: 'rss' | 'supported'
@@ -20,7 +19,6 @@ type CardItemWithActionsProps = {
2019
export const CardItemWithActions = ({
2120
cardItem,
2221
item,
23-
index,
2422
source,
2523
sourceType = 'supported',
2624
}: CardItemWithActionsProps) => {
@@ -73,7 +71,7 @@ export const CardItemWithActions = ({
7371
}
7472

7573
return (
76-
<div key={`${source}-${index}`} className="blockRow">
74+
<div key={item.id} className="blockRow">
7775
<ShareModal
7876
showModal={setShareModalData !== undefined}
7977
closeModal={() => setShareModalData(undefined)}

0 commit comments

Comments
 (0)