Skip to content

Commit 03449f7

Browse files
committed
Revert "Pass functional Item component directly"
This reverts commit a2c3f42.
1 parent f7dfdfc commit 03449f7

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

packages/compass-connections-navigation/src/connections-navigation-tree.tsx

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,25 @@ const ConnectionsNavigationTree: React.FunctionComponent<
233233
onItemExpand={onItemExpand}
234234
getItemActions={getItemActionsAndConfig}
235235
getItemKey={(item) => item.id}
236-
renderItem={NavigationItem}
236+
renderItem={({
237+
item,
238+
isActive,
239+
isFocused,
240+
onItemAction,
241+
onItemExpand,
242+
getItemActions,
243+
}) => {
244+
return (
245+
<NavigationItem
246+
item={item}
247+
isActive={isActive}
248+
isFocused={isFocused}
249+
getItemActions={getItemActions}
250+
onItemExpand={onItemExpand}
251+
onItemAction={onItemAction}
252+
/>
253+
);
254+
}}
237255
/>
238256
)}
239257
</AutoSizer>

0 commit comments

Comments
 (0)