chore: PropTypes

This commit is contained in:
cha0s 2021-03-29 19:24:55 -05:00
parent 9e71bb9ac3
commit 745e22f47a
5 changed files with 3 additions and 9 deletions

View File

@ -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 (

View File

@ -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,

View File

@ -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,

View File

@ -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,
}),
),

View File

@ -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 {