Cleanup some mapper stuff (#1351)

This commit is contained in:
Zoe Roux
2026-03-11 17:58:19 +01:00
committed by GitHub
parent 732eb2b3c0
commit 75cccdbe33
6 changed files with 76 additions and 30 deletions
+1 -2
View File
@@ -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