File tree Expand file tree Collapse file tree
src/features/cards/components/producthuntCard Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { Card } from 'src/components/Elements'
55import { ListComponent } from 'src/components/List'
66import { ProductHuntPlaceholder } from 'src/components/placeholders'
77import { useUserPreferences } from 'src/stores/preferences'
8- import { Article , CardPropsType } from 'src/types'
8+ import { CardPropsType , Product } from 'src/types'
99import { useShallow } from 'zustand/shallow'
1010import { useGeProductHuntProducts } from '../../api/getProductHuntProducts'
1111import { 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 }
You can’t perform that action at this time.
0 commit comments