diff --git a/js/components/whitelabel/wallet/components/market/market_forms/market_additional_data_form.js b/js/components/whitelabel/wallet/components/market/market_forms/market_additional_data_form.js index 24a70445..a7bbb56d 100644 --- a/js/components/whitelabel/wallet/components/market/market_forms/market_additional_data_form.js +++ b/js/components/whitelabel/wallet/components/market/market_forms/market_additional_data_form.js @@ -11,14 +11,14 @@ import InputTextAreaToggable from '../../../../../ascribe_forms/input_textarea_t import Form from '../../../../../ascribe_forms/form'; import Property from '../../../../../ascribe_forms/property'; -import { formSubmissionValidation } from '../../../../../ascribe_uploader/react_s3_fine_uploader_utils'; - import AscribeSpinner from '../../../../../ascribe_spinner'; import ApiUrls from '../../../../../../constants/api_urls'; -import AppConstants from '../../../../../../constants/application_constants'; +import { validationParts, validationTypes } from '../../../../../../constants/uploader_constants'; import requests from '../../../../../../utils/requests'; + +import { formSubmissionValidation } from '../../../../../ascribe_uploader/react_s3_fine_uploader_utils'; import { mergeOptions } from '../../../../../../utils/general_utils'; import { getLangText } from '../../../../../../utils/lang_utils'; @@ -170,7 +170,12 @@ let MarketAdditionalDataForm = React.createClass({ otherData={otherData} pieceId={pieceId} setIsUploadReady={this.setIsUploadReady} - submitFile={function () {}} /> + submitFile={function () {}} + validation={{ + itemLimit: validationTypes.workThumbnail.itemLimit, + sizeLimit: validationTypes.workThumbnail.sizeLimit, + allowedExtensions: validationParts.allowedExtensions.images + }} />