Skip to content

Commit

Permalink
Add icon for litho mountables
Browse files Browse the repository at this point in the history
Summary:
Requested by litho team

Changelog: UIDebugger Add seperate icon for litho mountables

Changelog: UIDebugger Serialize all props using java.lang.toString

Changelog: UIDebugger show drawables mounted by litho

Reviewed By: lblasa

Differential Revision: D47295799

fbshipit-source-id: ce5b9384e4796a5c58080a289709ed9f7afdf329
  • Loading branch information
Luke De Feo authored and facebook-github-bot committed Jul 17, 2023
1 parent 9ef69bd commit 2111067
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion desktop/plugins/public/ui-debugger/components/Tree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,9 @@ function HighlightedText(props: {text: string}) {
}

function nodeIcon(node: UINode) {
if (node.tags.includes('Litho')) {
if (node.tags.includes('LithoMountable')) {
return <DecorationImage src="icons/litho-logo-blue.png" />;
} else if (node.tags.includes('Litho')) {
return <DecorationImage src="icons/litho-logo.png" />;
} else if (node.tags.includes('CK')) {
if (node.tags.includes('iOS')) {
Expand Down
1 change: 1 addition & 0 deletions desktop/plugins/public/ui-debugger/types.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ export type Tag =
| 'Declarative'
| 'Android'
| 'Litho'
| 'LithoMountable'
| 'CK'
| 'iOS'
| 'BloksBoundTree'
Expand Down
Binary file added desktop/static/icons/litho-logo-blue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2111067

Please sign in to comment.