mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 09:23:13 +01:00
Minor changes for integrating PR Feedback
This commit is contained in:
parent
343d6bfea2
commit
56d8726a0b
@ -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')
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user