mirror of
https://github.com/ascribe/onion.git
synced 2024-12-23 01:39:36 +01:00
PieceId should only ever be a number if passed as a prop
This commit is contained in:
parent
7136f2ce6c
commit
3e67e2d2ee
@ -36,17 +36,11 @@ const ReactS3FineUploader = React.createClass({
|
|||||||
keyRoutine: shape({
|
keyRoutine: shape({
|
||||||
url: string,
|
url: string,
|
||||||
fileClass: string,
|
fileClass: string,
|
||||||
pieceId: oneOfType([
|
pieceId: number
|
||||||
string,
|
|
||||||
number
|
|
||||||
])
|
|
||||||
}),
|
}),
|
||||||
createBlobRoutine: shape({
|
createBlobRoutine: shape({
|
||||||
url: string,
|
url: string,
|
||||||
pieceId: oneOfType([
|
pieceId: number
|
||||||
string,
|
|
||||||
number
|
|
||||||
])
|
|
||||||
}),
|
}),
|
||||||
handleChangedFile: func, // is for when a file is dropped or selected
|
handleChangedFile: func, // is for when a file is dropped or selected
|
||||||
submitFile: func, // is for when a file has been successfully uploaded, TODO: rename to handleSubmitFile
|
submitFile: func, // is for when a file has been successfully uploaded, TODO: rename to handleSubmitFile
|
||||||
|
@ -28,10 +28,7 @@ import { getLangText } from '../../../../../../utils/lang_utils';
|
|||||||
|
|
||||||
let MarketAdditionalDataForm = React.createClass({
|
let MarketAdditionalDataForm = React.createClass({
|
||||||
propTypes: {
|
propTypes: {
|
||||||
pieceId: React.PropTypes.oneOfType([
|
pieceId: React.PropTypes.number,
|
||||||
React.PropTypes.number,
|
|
||||||
React.PropTypes.string
|
|
||||||
]),
|
|
||||||
editable: React.PropTypes.bool,
|
editable: React.PropTypes.bool,
|
||||||
isInline: React.PropTypes.bool,
|
isInline: React.PropTypes.bool,
|
||||||
showHeading: React.PropTypes.bool,
|
showHeading: React.PropTypes.bool,
|
||||||
|
Loading…
Reference in New Issue
Block a user