diff --git a/js/components/ascribe_forms/form_register_piece.js b/js/components/ascribe_forms/form_register_piece.js index 7288aa63..80efd6d0 100644 --- a/js/components/ascribe_forms/form_register_piece.js +++ b/js/components/ascribe_forms/form_register_piece.js @@ -202,7 +202,6 @@ let RegisterPieceForm = React.createClass({ allowedExtensions: ['png', 'jpg', 'jpeg', 'gif'] }} setIsUploadReady={this.setIsUploadReady('thumbnailKeyReady')} - location={location} fileClassToUpload={{ singular: getLangText('Select representative image'), plural: getLangText('Select representative images') diff --git a/js/components/ascribe_forms/property.js b/js/components/ascribe_forms/property.js index 1a5c0776..3eb37cf2 100644 --- a/js/components/ascribe_forms/property.js +++ b/js/components/ascribe_forms/property.js @@ -283,10 +283,6 @@ const Property = React.createClass({ } }, - handleCheckboxToggle() { - this.setState({expanded: !this.state.expanded}); - }, - getCheckbox() { const { checkboxLabel } = this.props; @@ -310,7 +306,6 @@ const Property = React.createClass({ render() { let footer = null; - let style = Object.assign({}, this.props.style); if(this.props.footer){ footer = ( @@ -320,14 +315,11 @@ const Property = React.createClass({ ); } - style.paddingBottom = !this.state.expanded ? 0 : null; - style.cursor = !this.props.editable ? 'not-allowed' : null; - return (
+ style={this.props.style}> {this.getCheckbox()}