1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-22 17:33:14 +01:00

PieceId should only ever be a number if passed as a prop

This commit is contained in:
Brett Sun 2016-01-14 14:52:33 +01:00
parent 7136f2ce6c
commit 3e67e2d2ee
2 changed files with 3 additions and 12 deletions

View File

@ -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

View File

@ -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,