File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import React , { ReactNode } from 'react'
22import { Placeholder } from 'src/components/placeholders'
33import { MAX_ITEMS_PER_CARD } from 'src/config'
4- import { BaseEntry } from 'src/types'
54
65type PlaceholdersProps = {
76 placeholder : ReactNode
@@ -17,7 +16,7 @@ const Placeholders = React.memo<PlaceholdersProps>(({ placeholder }) => {
1716 )
1817} )
1918
20- export type ListComponentPropsType < T extends BaseEntry > = {
19+ export type ListComponentPropsType < T extends unknown > = {
2120 items : T [ ]
2221 isLoading : boolean
2322 renderItem : ( item : T , index : number ) => React . ReactNode
@@ -28,7 +27,7 @@ export type ListComponentPropsType<T extends BaseEntry> = {
2827 limit ?: number
2928}
3029
31- export function ListComponent < T extends BaseEntry > ( props : ListComponentPropsType < T > ) {
30+ export function ListComponent < T extends unknown > ( props : ListComponentPropsType < T > ) {
3231 const {
3332 items,
3433 isLoading,
You can’t perform that action at this time.
0 commit comments