From 8892ac42252c86b201de50ddea09c00b10e6eaab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Daubensch=C3=BCtz?= Date: Thu, 5 Nov 2015 11:56:09 +0100 Subject: [PATCH 1/2] Add additional fields to step two of cyland's loan process --- .../cyland_additional_data_form.js | 52 ++++++++++++++++++- 1 file changed, 50 insertions(+), 2 deletions(-) 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 63863b2d..ac8e70ab 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,21 +122,69 @@ let CylandAdditionalDataForm = React.createClass({ {heading} + label={getLangText('Artist Biography')} + hidden={disabled && !this.props.piece.extra_data.artist_bio}> + + label={getLangText('Conceptual Overview')} + hidden={disabled && !this.props.piece.extra_data.conceptual_overview}> + + + + Date: Fri, 13 Nov 2015 09:57:22 +0100 Subject: [PATCH 2/2] Include feedback from PR for destructuring props --- .../cyland_additional_data_form.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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 ac8e70ab..c9ed8666 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 @@ -78,7 +78,7 @@ let CylandAdditionalDataForm = React.createClass({ }, render() { - let { piece, isInline, disabled, handleSuccess } = this.props; + let { piece, isInline, disabled, handleSuccess, location } = this.props; let buttons, spinner, heading; if(!isInline) { @@ -123,7 +123,7 @@ let CylandAdditionalDataForm = React.createClass({