From 8a4243ffabfa7820f2463d2a61690ed8bd5bb59d Mon Sep 17 00:00:00 2001 From: Brett Sun Date: Fri, 8 Jul 2016 15:34:31 +0200 Subject: [PATCH] Clean up FurtherDetails component --- .../ascribe_detail/further_details.js | 52 +++++++------------ 1 file changed, 18 insertions(+), 34 deletions(-) diff --git a/js/components/ascribe_detail/further_details.js b/js/components/ascribe_detail/further_details.js index 8973f6a9..e073f9df 100644 --- a/js/components/ascribe_detail/further_details.js +++ b/js/components/ascribe_detail/further_details.js @@ -1,5 +1,3 @@ -'use strict'; - import React from 'react'; import Row from 'react-bootstrap/lib/Row'; @@ -18,7 +16,7 @@ import { formSubmissionValidation } from '../ascribe_uploader/react_s3_fine_uplo import { getLangText } from '../../utils/lang'; -let FurtherDetails = React.createClass({ +const FurtherDetails = React.createClass({ propTypes: { pieceId: React.PropTypes.number.isRequired, @@ -34,6 +32,7 @@ let FurtherDetails = React.createClass({ }; }, + // FIXME: add this to the uploader too showNotification() { const { handleSuccess } = this.props; @@ -45,56 +44,42 @@ let FurtherDetails = React.createClass({ GlobalNotificationActions.appendGlobalNotification(notification); }, - submitFile(file) { - this.setState({ - otherDataKey: file.key - }); - }, - - setIsUploadReady(isReady) { - this.setState({ - isUploadReady: isReady - }); - }, - render() { const { editable, extraData, otherData, pieceId } = this.props; return ( - + + name='artist_contact_info' + pieceId={pieceId} + title={getLangText('Artist Contact Info')} /> + pieceId={pieceId} + title={getLangText('Display Instructions')} /> + name='technology_details' + pieceId={pieceId} + title={getLangText('Technology Details')} />
+ pieceId={pieceId} />
@@ -103,5 +88,4 @@ let FurtherDetails = React.createClass({ }); - export default FurtherDetails;