{topInfos && topInfos.length > 0 && (
{
const renderItem = useCallback(
({ index, ...rest }) => {
const itemData = categoryItemInfos[index];
-
- return (
-
- );
+ if (index !== categoryItemInfos.length) {
+ return (
+
+ );
+ } else {
+ return (
+
+ );
+ }
},
[categoryItemInfos]
);
+
return (
{
{categoryItemInfos && categoryItemInfos.length > 0 && (