fix: literal any

This commit is contained in:
cha0s 2020-06-20 04:51:10 -05:00
parent f7e1bb40c5
commit a17ae7e78f

View File

@ -55,23 +55,10 @@ const renderValue = (context, type, value) => {
</select> </select>
{ {
(() => { (() => {
const Component = TypeRenderers[type]; const Component = TypeRenderers['any' === type ? 'string' : type];
return Component return Component
? <Component value={value.value} /> ? <Component value={value.value} />
: null; : 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> </div>