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

Minor changes for integrating PR Feedback

This commit is contained in:
Tim Daubenschütz 2015-12-07 17:02:53 +01:00
parent 343d6bfea2
commit 56d8726a0b
2 changed files with 1 additions and 10 deletions

View File

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

View File

@ -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 (
<div
className={'ascribe-property-wrapper ' + this.getClassName()}
onClick={this.handleFocus}
style={style}>
style={this.props.style}>
{this.getCheckbox()}
<Panel
collapsible