Skip to content
Snippets Groups Projects
Commit d8f0464c authored by Ray Schamp's avatar Ray Schamp Committed by GitHub
Browse files

Fix warning from SpriteInfo on initialization (#291)

parent 193615c6
Branches
Tags
No related merge requests found
......@@ -222,8 +222,14 @@ SpriteInfo.propTypes = {
onKeyPress: React.PropTypes.func,
rotationStyle: React.PropTypes.oneOf(ROTATION_STYLES),
visible: React.PropTypes.bool,
x: React.PropTypes.string,
y: React.PropTypes.string
x: React.PropTypes.oneOfType([
React.PropTypes.string,
React.PropTypes.number
]),
y: React.PropTypes.oneOfType([
React.PropTypes.string,
React.PropTypes.number
])
};
module.exports = SpriteInfo;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment