diff --git a/packages/entity/src/resource-controllers/entity/traits/index.jsx b/packages/entity/src/resource-controllers/entity/traits/index.jsx index a443742..d043f48 100644 --- a/packages/entity/src/resource-controllers/entity/traits/index.jsx +++ b/packages/entity/src/resource-controllers/entity/traits/index.jsx @@ -6,6 +6,7 @@ import { React, useLatus, } from '@latus/react'; +import {JsonResourceController} from '@persea/json'; import { Tab, Tabs, @@ -13,15 +14,12 @@ import { TabPanel, } from 'react-tabs'; -const NoTraitRenderer = ({json}) => ( -
-    
-      {JSON.stringify(json, null, 2)}
-    
-  
+const NoTraitRenderer = ({path, json}) => ( + ); NoTraitRenderer.propTypes = { + path: PropTypes.string.isRequired, json: PropTypes.shape({}).isRequired, };