Add unknown type support in visualiser

Summary:
^

In this case, the unknown value, which is a text will be displayed as sent by the client.

Reviewed By: antonk52

Differential Revision: D41494094

fbshipit-source-id: 9295e3f7e055a8ce9b430137600108a4cdf32c90
This commit is contained in:
Lorenzo Blasa
2022-11-23 05:14:00 -08:00
committed by Facebook GitHub Bot
parent 7ec09b4f95
commit ae5eeb137d
2 changed files with 13 additions and 1 deletions

View File

@@ -153,6 +153,12 @@ function create(
<SpaceBoxInspector value={inspectable.value} />
</NamedAttributeInspector>
);
case 'unknown':
return (
<NamedAttributeInspector name={displayableName(name)}>
<TextValue>{inspectable.value}</TextValue>
</NamedAttributeInspector>
);
case 'object':
return (
<ObjectAttributeInspector