Fix wrong prop types for metadata

This commit is contained in:
Alex Liebowitz 2017-02-23 01:14:48 -05:00
parent 9a36270d3e
commit 0266523a5c
2 changed files with 3 additions and 3 deletions

View file

@ -58,7 +58,7 @@ let FileActionsRow = React.createClass({
propTypes: {
streamName: React.PropTypes.string,
sdHash: React.PropTypes.string.isRequired,
metadata: React.PropTypes.object
metadata: React.PropTypes.oneOfType([React.PropTypes.object, React.PropTypes.string]),
},
getInitialState: function() {
return {
@ -226,7 +226,7 @@ export let FileActions = React.createClass({
propTypes: {
streamName: React.PropTypes.string,
sdHash: React.PropTypes.string.isRequired,
metadata: React.PropTypes.object
metadata: React.PropTypes.oneOfType([React.PropTypes.object, React.PropTypes.string]),
},
getInitialState: function() {
return {

View file

@ -57,7 +57,7 @@ export let FileTileStream = React.createClass({
_isMounted: null,
propTypes: {
metadata: React.PropTypes.object,
metadata: React.PropTypes.oneOfType([React.PropTypes.string, React.PropTypes.object]),
sdHash: React.PropTypes.string,
hideOnRemove: React.PropTypes.bool,
hidePrice: React.PropTypes.bool,