From 745e22f47a3b7149aa990418fe9e86f7709fa0ef Mon Sep 17 00:00:00 2001 From: cha0s Date: Mon, 29 Mar 2021 19:24:55 -0500 Subject: [PATCH] chore: PropTypes --- packages/app/src/components/resource/index.jsx | 1 - packages/entity/src/behavior-components/condition.jsx | 3 --- packages/entity/src/behavior-components/expression.jsx | 4 +--- .../entity/src/behavior-components/expression/invocation.jsx | 2 +- packages/sound/src/resource-controllers/sound/index.jsx | 2 +- 5 files changed, 3 insertions(+), 9 deletions(-) diff --git a/packages/app/src/components/resource/index.jsx b/packages/app/src/components/resource/index.jsx index 2e95aab..0a5b0b2 100644 --- a/packages/app/src/components/resource/index.jsx +++ b/packages/app/src/components/resource/index.jsx @@ -10,7 +10,6 @@ import {resourceSelector, UriContext} from '@persea/core'; const Resource = ({uri, uuid}) => { const latus = useLatus(); - console.log(`${uuid}${uri}`); const resource = useSelector((state) => resourceSelector(state, `${uuid}${uri}`)); const {Component} = latus.get('%resource-controllers')(uri); return ( diff --git a/packages/entity/src/behavior-components/condition.jsx b/packages/entity/src/behavior-components/condition.jsx index 57f2c74..64cb9b6 100644 --- a/packages/entity/src/behavior-components/condition.jsx +++ b/packages/entity/src/behavior-components/condition.jsx @@ -113,9 +113,6 @@ Condition.displayName = 'Condition'; Condition.propTypes = { context: PropTypes.shape({ - constructor: PropTypes.shape({ - descriptionFor: PropTypes.func, - }), describeChildren: PropTypes.func, get: PropTypes.func, }).isRequired, diff --git a/packages/entity/src/behavior-components/expression.jsx b/packages/entity/src/behavior-components/expression.jsx index c1de8c7..850aa3f 100644 --- a/packages/entity/src/behavior-components/expression.jsx +++ b/packages/entity/src/behavior-components/expression.jsx @@ -345,9 +345,7 @@ Expression.displayName = 'Expression'; Expression.propTypes = { context: PropTypes.shape({ - constructor: PropTypes.shape({ - descriptionFor: PropTypes.func, - }), + constructor: PropTypes.func, describeChildren: PropTypes.func, get: PropTypes.func, }).isRequired, diff --git a/packages/entity/src/behavior-components/expression/invocation.jsx b/packages/entity/src/behavior-components/expression/invocation.jsx index e68b8c1..5c77522 100644 --- a/packages/entity/src/behavior-components/expression/invocation.jsx +++ b/packages/entity/src/behavior-components/expression/invocation.jsx @@ -120,7 +120,7 @@ Invocation.propTypes = { description: PropTypes.shape({ args: PropTypes.arrayOf( PropTypes.shape({ - options: PropTypes.shape({}), + options: PropTypes.arrayOf(PropTypes.any), type: PropTypes.string, }), ), diff --git a/packages/sound/src/resource-controllers/sound/index.jsx b/packages/sound/src/resource-controllers/sound/index.jsx index 282eff4..df8ac5a 100644 --- a/packages/sound/src/resource-controllers/sound/index.jsx +++ b/packages/sound/src/resource-controllers/sound/index.jsx @@ -96,7 +96,7 @@ SoundComponent.displayName = 'SoundComponent'; SoundComponent.propTypes = { path: PropTypes.string, - resource: PropTypes.string.isRequired, + resource: PropTypes.shape({}).isRequired, }; export default class SoundController extends JsonResourceController {