Simple antd types for each inspectable type

Summary:
Replace draft inspectors with read-only components.

This is a first step into having a richer UI. At the moment, these are read-only components but will likely be extended in the future as to allow editing of values.

Reviewed By: LukeDefeo

Differential Revision: D40345016

fbshipit-source-id: a6aef5861474b4aa8353c00ef257ab17b4cff00e
This commit is contained in:
Lorenzo Blasa
2022-10-25 03:09:00 -07:00
committed by Facebook GitHub Bot
parent 9721993576
commit bb3b1cecef
21 changed files with 1106 additions and 149 deletions

View File

@@ -7,6 +7,12 @@
* @format
*/
/**
* Utility function that generates a more human-readable name
* for an attribute in lowerCamelCase format.
* @param attribute Attribute name in the form of lowerCamelCase
* @returns Displayable name for the provided attribute.
*/
export function displayableName(attribute: string): string {
if (attribute.length > 0) {
const displayable = attribute[0].toUpperCase() + attribute.substring(1);