chore: PropTypes
This commit is contained in:
parent
9e71bb9ac3
commit
745e22f47a
|
@ -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 (
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
}),
|
||||
),
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user