mirror of
https://github.com/ascribe/onion.git
synced 2025-01-03 10:25:08 +01:00
Include feedback from PR for destructuring props
This commit is contained in:
parent
8892ac4225
commit
19bdf59f46
@ -78,7 +78,7 @@ let CylandAdditionalDataForm = React.createClass({
|
|||||||
},
|
},
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
let { piece, isInline, disabled, handleSuccess } = this.props;
|
let { piece, isInline, disabled, handleSuccess, location } = this.props;
|
||||||
let buttons, spinner, heading;
|
let buttons, spinner, heading;
|
||||||
|
|
||||||
if(!isInline) {
|
if(!isInline) {
|
||||||
@ -123,7 +123,7 @@ let CylandAdditionalDataForm = React.createClass({
|
|||||||
<Property
|
<Property
|
||||||
name='artist_bio'
|
name='artist_bio'
|
||||||
label={getLangText('Artist Biography')}
|
label={getLangText('Artist Biography')}
|
||||||
hidden={disabled && !this.props.piece.extra_data.artist_bio}>
|
hidden={disabled && !piece.extra_data.artist_bio}>
|
||||||
<InputTextAreaToggable
|
<InputTextAreaToggable
|
||||||
rows={1}
|
rows={1}
|
||||||
defaultValue={piece.extra_data.artist_bio}
|
defaultValue={piece.extra_data.artist_bio}
|
||||||
@ -132,7 +132,7 @@ let CylandAdditionalDataForm = React.createClass({
|
|||||||
<Property
|
<Property
|
||||||
name='artist_contact_information'
|
name='artist_contact_information'
|
||||||
label={getLangText('Artist Contact Information')}
|
label={getLangText('Artist Contact Information')}
|
||||||
hidden={disabled && !this.props.piece.extra_data.artist_contact_information}>
|
hidden={disabled && !piece.extra_data.artist_contact_information}>
|
||||||
<InputTextAreaToggable
|
<InputTextAreaToggable
|
||||||
rows={1}
|
rows={1}
|
||||||
defaultValue={piece.extra_data.artist_contact_information}
|
defaultValue={piece.extra_data.artist_contact_information}
|
||||||
@ -141,7 +141,7 @@ let CylandAdditionalDataForm = React.createClass({
|
|||||||
<Property
|
<Property
|
||||||
name='conceptual_overview'
|
name='conceptual_overview'
|
||||||
label={getLangText('Conceptual Overview')}
|
label={getLangText('Conceptual Overview')}
|
||||||
hidden={disabled && !this.props.piece.extra_data.conceptual_overview}>
|
hidden={disabled && !piece.extra_data.conceptual_overview}>
|
||||||
<InputTextAreaToggable
|
<InputTextAreaToggable
|
||||||
rows={1}
|
rows={1}
|
||||||
defaultValue={piece.extra_data.conceptual_overview}
|
defaultValue={piece.extra_data.conceptual_overview}
|
||||||
@ -150,7 +150,7 @@ let CylandAdditionalDataForm = React.createClass({
|
|||||||
<Property
|
<Property
|
||||||
name='medium'
|
name='medium'
|
||||||
label={getLangText('Medium (technical specifications)')}
|
label={getLangText('Medium (technical specifications)')}
|
||||||
hidden={disabled && !this.props.piece.extra_data.medium}>
|
hidden={disabled && !piece.extra_data.medium}>
|
||||||
<InputTextAreaToggable
|
<InputTextAreaToggable
|
||||||
rows={1}
|
rows={1}
|
||||||
defaultValue={piece.extra_data.medium}
|
defaultValue={piece.extra_data.medium}
|
||||||
@ -159,7 +159,7 @@ let CylandAdditionalDataForm = React.createClass({
|
|||||||
<Property
|
<Property
|
||||||
name='size_duration'
|
name='size_duration'
|
||||||
label={getLangText('Size / Duration')}
|
label={getLangText('Size / Duration')}
|
||||||
hidden={disabled && !this.props.piece.extra_data.size_duration}>
|
hidden={disabled && !piece.extra_data.size_duration}>
|
||||||
<InputTextAreaToggable
|
<InputTextAreaToggable
|
||||||
rows={1}
|
rows={1}
|
||||||
defaultValue={piece.extra_data.size_duration}
|
defaultValue={piece.extra_data.size_duration}
|
||||||
@ -168,7 +168,7 @@ let CylandAdditionalDataForm = React.createClass({
|
|||||||
<Property
|
<Property
|
||||||
name='display_instructions'
|
name='display_instructions'
|
||||||
label={getLangText('Display instructions')}
|
label={getLangText('Display instructions')}
|
||||||
hidden={disabled && !this.props.piece.extra_data.display_instructions}>
|
hidden={disabled && !piece.extra_data.display_instructions}>
|
||||||
<InputTextAreaToggable
|
<InputTextAreaToggable
|
||||||
rows={1}
|
rows={1}
|
||||||
defaultValue={piece.extra_data.display_instructions}
|
defaultValue={piece.extra_data.display_instructions}
|
||||||
@ -177,7 +177,7 @@ let CylandAdditionalDataForm = React.createClass({
|
|||||||
<Property
|
<Property
|
||||||
name='additional_details'
|
name='additional_details'
|
||||||
label={getLangText('Additional details')}
|
label={getLangText('Additional details')}
|
||||||
hidden={disabled && !this.props.piece.extra_data.additional_details}>
|
hidden={disabled && !piece.extra_data.additional_details}>
|
||||||
<InputTextAreaToggable
|
<InputTextAreaToggable
|
||||||
rows={1}
|
rows={1}
|
||||||
defaultValue={piece.extra_data.additional_details}
|
defaultValue={piece.extra_data.additional_details}
|
||||||
@ -192,7 +192,7 @@ let CylandAdditionalDataForm = React.createClass({
|
|||||||
pieceId={piece.id}
|
pieceId={piece.id}
|
||||||
otherData={piece.other_data}
|
otherData={piece.other_data}
|
||||||
multiple={true}
|
multiple={true}
|
||||||
location={this.props.location}/>
|
location={location}/>
|
||||||
</Form>
|
</Form>
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user