Process Bloks derived components

Reviewed By: lblasa

Differential Revision: D45079131

fbshipit-source-id: 363f5ed2fedc6183130ef0185f8ff5bf58579c10
This commit is contained in:
Luke De Feo
2023-04-27 07:28:41 -07:00
committed by Facebook GitHub Bot
parent e34f3f4883
commit 7cc1a1246e
3 changed files with 6 additions and 3 deletions

View File

@@ -394,6 +394,8 @@ function nodeIcon(node: UINode) {
return <DecorationImage src="icons/ck-logo.png" />;
} else if (node.tags.includes('BloksBoundTree')) {
return <DecorationImage src="facebook/bloks-logo-orange.png" />;
} else if (node.tags.includes('BloksDerived')) {
return <DecorationImage src="facebook/bloks-logo-blue.png" />;
}
}

View File

@@ -338,7 +338,7 @@ type UIActions = {
onSelectNode: (node?: Id) => void;
onExpandNode: (node: Id) => void;
onCollapseNode: (node: Id) => void;
setVisualiserWidth: (width: Id) => void;
setVisualiserWidth: (width: number) => void;
};
function uiActions(uiState: UIState, nodes: Atom<Map<Id, UINode>>): UIActions {

View File

@@ -174,7 +174,7 @@ export type Color = {
};
export type Snapshot = string;
export type Id = number;
export type Id = number | string;
export type MetadataId = number;
export type TreeState = {expandedNodes: Id[]};
@@ -186,7 +186,8 @@ export type Tag =
| 'Litho'
| 'CK'
| 'iOS'
| 'BloksBoundTree';
| 'BloksBoundTree'
| 'BloksDerived';
export type Inspectable =
| InspectableObject