Skip to content

Commit 511666e

Browse files
committed
fix: update FeedItem type from 'repo' to 'github' for consistency
1 parent d5616bc commit 511666e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/features/feed/components/feedItems/FeedItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { RepoFeedItem } from './RepoFeedItem'
66
export const FeedItem = (props: BaseItemPropsType<FeedItemData>) => {
77
const { item, index, analyticsTag } = props
88

9-
if (item.type === 'repo') {
9+
if (item.type === 'github') {
1010
return <RepoFeedItem item={item} index={index} analyticsTag={analyticsTag} />
1111
}
1212

src/types/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export type ProductHuntFeedItemData = FeedItem & {
7272
}
7373

7474
export type GithubFeedItemData = FeedItem & {
75-
type: 'repo'
75+
type: 'github'
7676
stars: number
7777
forks: number
7878
programmingLanguage: string

0 commit comments

Comments
 (0)