fix: literal any
This commit is contained in:
parent
f7e1bb40c5
commit
a17ae7e78f
|
@ -55,23 +55,10 @@ const renderValue = (context, type, value) => {
|
|||
</select>
|
||||
{
|
||||
(() => {
|
||||
const Component = TypeRenderers[type];
|
||||
const Component = TypeRenderers['any' === type ? 'string' : type];
|
||||
return Component
|
||||
? <Component value={value.value} />
|
||||
: null;
|
||||
// switch (type) {
|
||||
// case 'bool':
|
||||
// return <Bool.component value={value.value} />;
|
||||
// case 'number':
|
||||
// return <Number.component value={value.value} />;
|
||||
// case 'any':
|
||||
// case 'string':
|
||||
// return <String.component value={value.value} />;
|
||||
// case 'object':
|
||||
// return <ObjectType.component value={value.value} />;
|
||||
// default:
|
||||
// return null;
|
||||
// }
|
||||
})()
|
||||
}
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue
Block a user