Skip to content

Commit c4d57cc

Browse files
committed
refactor: restructure item prop in RepoItem component
1 parent a013c4b commit c4d57cc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/features/cards/components/githubCard/RepoItem.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ const RepoItem = ({
2222
return (
2323
<CardItemWithActions
2424
source={analyticsTag}
25-
item={item}
25+
item={{
26+
title: `${item.owner}/${item.name}`,
27+
url: item.url,
28+
id: item.id.toString(),
29+
}}
2630
cardItem={
2731
<>
2832
<CardLink

0 commit comments

Comments
 (0)