diff --git a/js/components/ascribe_forms/input_contract_agreement_checkbox.js b/js/components/ascribe_forms/input_contract_agreement_checkbox.js index 848523bf..b95f598b 100644 --- a/js/components/ascribe_forms/input_contract_agreement_checkbox.js +++ b/js/components/ascribe_forms/input_contract_agreement_checkbox.js @@ -124,6 +124,7 @@ const InputContractAgreementCheckbox = React.createClass({ disabled, style } = this.props; const { contractAgreementList } = this.state; + const contractAgreement = this.getContractAgreement(contractAgreementList); const inputCheckboxProps = { name, disabled, @@ -131,29 +132,24 @@ const InputContractAgreementCheckbox = React.createClass({ onChange: this.onChange }; - if (contractAgreementList && contractAgreementList.length > 0) { - const contractAgreement = contractAgreementList[0]; - const { issuer: contractIssuer, blob: { url_safe: contractUrl } } = contractAgreement.contract; - - - if (contractAgreement.datetime_accepted) { - // For `InputCheckbox` we want to override style in this case - Object.assign(inputCheckboxProps, { style: { 'display': 'none' } }); + if(contractAgreement) { + const { + datetime_accepted: datetimeAccepted, + issuer: contractIssuer, + blob: { url_safe: contractUrl }, + } = contractAgreement.contract; + if(datetimeAccepted) { return (
+ pluginspage="http://www.adobe.com/products/acrobat/readstep2.html"/> -
); } else { @@ -171,13 +167,6 @@ const InputContractAgreementCheckbox = React.createClass({ ); } - } else { - return ( - - ); } }, diff --git a/js/components/whitelabel/wallet/components/cyland/cyland_forms/cyland_additional_data_form.js b/js/components/whitelabel/wallet/components/cyland/cyland_forms/cyland_additional_data_form.js index a24c860b..54ac501b 100644 --- a/js/components/whitelabel/wallet/components/cyland/cyland_forms/cyland_additional_data_form.js +++ b/js/components/whitelabel/wallet/components/cyland/cyland_forms/cyland_additional_data_form.js @@ -122,7 +122,7 @@ let CylandAdditionalDataForm = React.createClass({ + expanded={!disabled || !!piece.extra_data.artist_bio}> + expanded={!disabled || !!piece.extra_data.artist_contact_information}> + expanded={!disabled || !!piece.extra_data.conceptual_overview}> + expanded={!disabled || !!piece.extra_data.medium}> + expanded={!disabled || !!piece.extra_data.size_duration}> + expanded={!disabled || !!piece.extra_data.display_instructions}> + expanded={!disabled || !!piece.extra_data.additional_details}> + expanded={!this.props.disabled || !!this.props.piece.extra_data.artist_website}> + expanded={!this.props.disabled || !!this.props.piece.extra_data.gallery_website}> + expanded={!this.props.disabled || !!this.props.piece.extra_data.additional_websites}> + expanded={!this.props.disabled || !!this.props.piece.extra_data.conceptual_overview}> + expanded={!this.props.disabled || !!this.props.piece.extra_data.medium}> + expanded={!this.props.disabled || !!this.props.piece.extra_data.size_duration}> + expanded={!this.props.disabled || !!this.props.piece.extra_data.copyright}> + expanded={!this.props.disabled || !!this.props.piece.extra_data.courtesy_of}> + expanded={!this.props.disabled || !!this.props.piece.extra_data.copyright_of_photography}> + expanded={!this.props.disabled || !!this.props.piece.extra_data.additional_details}>