mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 09:23:13 +01:00
Fix PropType warnings for components in ascribe_detail
This commit is contained in:
parent
c72a5aa308
commit
784098f225
@ -6,13 +6,18 @@ let DetailProperty = React.createClass({
|
||||
propTypes: {
|
||||
label: React.PropTypes.string,
|
||||
value: React.PropTypes.oneOfType([
|
||||
React.PropTypes.number,
|
||||
React.PropTypes.string,
|
||||
React.PropTypes.element
|
||||
]),
|
||||
separator: React.PropTypes.string,
|
||||
labelClassName: React.PropTypes.string,
|
||||
valueClassName: React.PropTypes.string,
|
||||
ellipsis: React.PropTypes.bool
|
||||
ellipsis: React.PropTypes.bool,
|
||||
children: React.PropTypes.oneOfType([
|
||||
React.PropTypes.arrayOf(React.PropTypes.element),
|
||||
React.PropTypes.element
|
||||
])
|
||||
},
|
||||
|
||||
getDefaultProps() {
|
||||
|
@ -19,6 +19,7 @@ let EditionContainer = React.createClass({
|
||||
propTypes: {
|
||||
actionPanelButtonListType: React.PropTypes.func,
|
||||
furtherDetailsType: React.PropTypes.func,
|
||||
params: React.PropTypes.object,
|
||||
location: React.PropTypes.object
|
||||
},
|
||||
|
||||
|
@ -27,7 +27,7 @@ let FurtherDetailsFileuploader = React.createClass({
|
||||
|
||||
getDefaultProps() {
|
||||
return {
|
||||
label: "Additional files",
|
||||
label: 'Additional files',
|
||||
multiple: false
|
||||
};
|
||||
},
|
||||
|
@ -20,7 +20,10 @@ let Piece = React.createClass({
|
||||
subheader: React.PropTypes.object,
|
||||
buttons: React.PropTypes.object,
|
||||
loadPiece: React.PropTypes.func,
|
||||
children: React.PropTypes.object
|
||||
children: React.PropTypes.oneOfType([
|
||||
React.PropTypes.arrayOf(React.PropTypes.element),
|
||||
React.PropTypes.element
|
||||
])
|
||||
},
|
||||
|
||||
|
||||
|
@ -46,6 +46,7 @@ import { setDocumentTitle } from '../../utils/dom_utils';
|
||||
*/
|
||||
let PieceContainer = React.createClass({
|
||||
propTypes: {
|
||||
params: React.PropTypes.object,
|
||||
furtherDetailsType: React.PropTypes.func,
|
||||
location: React.PropTypes.object
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user