Skip to content

Commit a2c3f42

Browse files
committed
Pass functional Item component directly
1 parent 61d704d commit a2c3f42

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

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

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -233,25 +233,7 @@ const ConnectionsNavigationTree: React.FunctionComponent<
233233
onItemExpand={onItemExpand}
234234
getItemActions={getItemActionsAndConfig}
235235
getItemKey={(item) => item.id}
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-
}}
236+
renderItem={NavigationItem}
255237
/>
256238
)}
257239
</AutoSizer>

0 commit comments

Comments
 (0)