Skip to content

Commit 75ddc98

Browse files
committed
fix: update ProductHuntCard to use Product type instead of Article type
1 parent 79c268e commit 75ddc98

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/features/cards/components/producthuntCard/ProducthuntCard.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Card } from 'src/components/Elements'
55
import { ListComponent } from 'src/components/List'
66
import { ProductHuntPlaceholder } from 'src/components/placeholders'
77
import { useUserPreferences } from 'src/stores/preferences'
8-
import { Article, CardPropsType } from 'src/types'
8+
import { CardPropsType, Product } from 'src/types'
99
import { useShallow } from 'zustand/shallow'
1010
import { useGeProductHuntProducts } from '../../api/getProductHuntProducts'
1111
import { useLazyListLoad } from '../../hooks/useLazyListLoad'
@@ -31,7 +31,7 @@ export function ProductHuntCard(props: CardPropsType) {
3131
})
3232

3333
const renderItem = useCallback(
34-
(item: Article) => <ArticleItem item={item} key={item.id} analyticsTag={meta.analyticsTag} />,
34+
(item: Product) => <ArticleItem item={item} key={item.id} analyticsTag={meta.analyticsTag} />,
3535
[meta.analyticsTag]
3636
)
3737

@@ -59,7 +59,7 @@ export function ProductHuntCard(props: CardPropsType) {
5959
]}
6060
/>
6161
}>
62-
<ListComponent
62+
<ListComponent<Product>
6363
items={products}
6464
error={error}
6565
isLoading={isLoading}

0 commit comments

Comments
 (0)