mirror of
https://github.com/zoriya/Kyoo.git
synced 2026-06-08 07:15:15 -04:00
Cleanup some mapper stuff (#1351)
This commit is contained in:
@@ -73,8 +73,6 @@ export const InfiniteFetch = <Data, Type extends string = string>({
|
||||
return isFetching && !isRefetching ? [...items, ...placeholders] : items;
|
||||
}, [items, isFetching, isRefetching, placeholderCount, numColumns]);
|
||||
|
||||
if (!data.length && Empty) return Empty;
|
||||
|
||||
return (
|
||||
<AnimatedLegendList
|
||||
data={data}
|
||||
@@ -102,6 +100,7 @@ export const InfiniteFetch = <Data, Type extends string = string>({
|
||||
onRefresh={layout.layout !== "horizontal" ? refetch : undefined}
|
||||
refreshing={isRefetching}
|
||||
ListHeaderComponent={Header}
|
||||
ListEmptyComponent={Empty}
|
||||
ListFooterComponent={Footer}
|
||||
ItemSeparatorComponent={
|
||||
Divider === true ? HR : (Divider as any) || undefined
|
||||
|
||||
Reference in New Issue
Block a user