From 6faccc48895c03616501bf1e84648a152263e509 Mon Sep 17 00:00:00 2001 From: Luke De Feo Date: Fri, 21 Jul 2023 07:17:31 -0700 Subject: [PATCH] UIDRefactor 8/n rename tree types Summary: The previous names made no sense after they drifted over time Reviewed By: lblasa Differential Revision: D47550916 fbshipit-source-id: fa7df17b090c52b68ab4af9388d87365da6e8ff3 --- .../public/ui-debugger/components/tree/Tree.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/desktop/plugins/public/ui-debugger/components/tree/Tree.tsx b/desktop/plugins/public/ui-debugger/components/tree/Tree.tsx index 051fd26ce..819281804 100644 --- a/desktop/plugins/public/ui-debugger/components/tree/Tree.tsx +++ b/desktop/plugins/public/ui-debugger/components/tree/Tree.tsx @@ -237,7 +237,7 @@ export function Tree2({ } }}> {rowVirtualizer.getVirtualItems().map((virtualRow) => ( - )} - {nodeIcon(treeNode)} - + {treeNode.frameworkEvents && ( )} - + ); } -function TreeItemRowContent({treeNode}: {treeNode: TreeNode}) { +function TreeNodeTextContent({treeNode}: {treeNode: TreeNode}) { return ( <> @@ -407,7 +407,7 @@ function InlineAttributes({attributes}: {attributes: Record}) { const TreeItemHeight = '26px'; const HalfTreeItemHeight = `calc(${TreeItemHeight} / 2)`; -const TreeItemRow = styled.li<{ +const TreeNodeContent = styled.li<{ item: TreeNode; isHovered: boolean; isSelected: boolean;