mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 09:23:13 +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({
|
||||
url: string,
|
||||
fileClass: string,
|
||||
pieceId: oneOfType([
|
||||
string,
|
||||
number
|
||||
])
|
||||
pieceId: number
|
||||
}),
|
||||
createBlobRoutine: shape({
|
||||
url: string,
|
||||
pieceId: oneOfType([
|
||||
string,
|
||||
number
|
||||
])
|
||||
pieceId: number
|
||||
}),
|
||||
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
|
||||
|
@ -28,10 +28,7 @@ import { getLangText } from '../../../../../../utils/lang_utils';
|
||||
|
||||
let MarketAdditionalDataForm = React.createClass({
|
||||
propTypes: {
|
||||
pieceId: React.PropTypes.oneOfType([
|
||||
React.PropTypes.number,
|
||||
React.PropTypes.string
|
||||
]),
|
||||
pieceId: React.PropTypes.number,
|
||||
editable: React.PropTypes.bool,
|
||||
isInline: React.PropTypes.bool,
|
||||
showHeading: React.PropTypes.bool,
|
||||
|
Loading…
Reference in New Issue
Block a user