Fix wrong prop types for metadata
This commit is contained in:
parent
9a36270d3e
commit
0266523a5c
2 changed files with 3 additions and 3 deletions
|
@ -58,7 +58,7 @@ let FileActionsRow = React.createClass({
|
||||||
propTypes: {
|
propTypes: {
|
||||||
streamName: React.PropTypes.string,
|
streamName: React.PropTypes.string,
|
||||||
sdHash: React.PropTypes.string.isRequired,
|
sdHash: React.PropTypes.string.isRequired,
|
||||||
metadata: React.PropTypes.object
|
metadata: React.PropTypes.oneOfType([React.PropTypes.object, React.PropTypes.string]),
|
||||||
},
|
},
|
||||||
getInitialState: function() {
|
getInitialState: function() {
|
||||||
return {
|
return {
|
||||||
|
@ -226,7 +226,7 @@ export let FileActions = React.createClass({
|
||||||
propTypes: {
|
propTypes: {
|
||||||
streamName: React.PropTypes.string,
|
streamName: React.PropTypes.string,
|
||||||
sdHash: React.PropTypes.string.isRequired,
|
sdHash: React.PropTypes.string.isRequired,
|
||||||
metadata: React.PropTypes.object
|
metadata: React.PropTypes.oneOfType([React.PropTypes.object, React.PropTypes.string]),
|
||||||
},
|
},
|
||||||
getInitialState: function() {
|
getInitialState: function() {
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -57,7 +57,7 @@ export let FileTileStream = React.createClass({
|
||||||
_isMounted: null,
|
_isMounted: null,
|
||||||
|
|
||||||
propTypes: {
|
propTypes: {
|
||||||
metadata: React.PropTypes.object,
|
metadata: React.PropTypes.oneOfType([React.PropTypes.string, React.PropTypes.object]),
|
||||||
sdHash: React.PropTypes.string,
|
sdHash: React.PropTypes.string,
|
||||||
hideOnRemove: React.PropTypes.bool,
|
hideOnRemove: React.PropTypes.bool,
|
||||||
hidePrice: React.PropTypes.bool,
|
hidePrice: React.PropTypes.bool,
|
||||||
|
|
Loading…
Add table
Reference in a new issue