From ec8986622f959f00cb1b0f3151bc9b6533a4d7a5 Mon Sep 17 00:00:00 2001 From: arvinxx Date: Sun, 3 Dec 2023 21:10:35 +0800 Subject: [PATCH] :bug: fix: fix SpotlightCard render --- src/SpotlightCard/index.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/SpotlightCard/index.tsx b/src/SpotlightCard/index.tsx index b11e9aee..6e26dafb 100644 --- a/src/SpotlightCard/index.tsx +++ b/src/SpotlightCard/index.tsx @@ -19,7 +19,7 @@ export interface SpotlightCardProps extends DivProps { const SpotlightCard = memo( ({ items, - renderItem, + renderItem: Content, className, columns = 3, gap = 12, @@ -65,7 +65,6 @@ const SpotlightCard = memo( {...rest} > {items.map((item, index) => { - const children = renderItem(item); return ( ( key={index} size={size} > - {children} + ); })}