diff --git a/src/components/target-pane/target-pane.jsx b/src/components/target-pane/target-pane.jsx index bffb876e888..8d9a09929a7 100644 --- a/src/components/target-pane/target-pane.jsx +++ b/src/components/target-pane/target-pane.jsx @@ -104,6 +104,8 @@ const TargetPane = ({ const spriteShape = PropTypes.shape({ costume: PropTypes.shape({ + // asset is defined in scratch-storage's Asset.js + asset: PropTypes.object, // eslint-disable-line react/forbid-prop-types url: PropTypes.string, name: PropTypes.string.isRequired, // The following are optional because costumes uploaded from disk @@ -112,6 +114,7 @@ const spriteShape = PropTypes.shape({ rotationCenterX: PropTypes.number, rotationCenterY: PropTypes.number }), + costumeCount: PropTypes.number, direction: PropTypes.number, id: PropTypes.string, name: PropTypes.string, diff --git a/src/containers/monitor.jsx b/src/containers/monitor.jsx index 18a6bbeab2d..5f20d69e0ce 100644 --- a/src/containers/monitor.jsx +++ b/src/containers/monitor.jsx @@ -232,8 +232,8 @@ Monitor.propTypes = { min: PropTypes.number, mode: PropTypes.oneOf(['default', 'slider', 'large', 'list']), monitorLayout: PropTypes.shape({ - monitors: PropTypes.object, - savedMonitorPositions: PropTypes.object + monitors: PropTypes.object, // eslint-disable-line react/forbid-prop-types + savedMonitorPositions: PropTypes.object // eslint-disable-line react/forbid-prop-types }).isRequired, onDragEnd: PropTypes.func.isRequired, opcode: PropTypes.string.isRequired, // eslint-disable-line react/no-unused-prop-types