From b1de08e0d17d3c6a0f10654c61970bcbc36664b3 Mon Sep 17 00:00:00 2001 From: Murali Suresh Date: Fri, 10 Feb 2017 19:59:14 +0900 Subject: [PATCH] Fixes Calendar memory #110 --- reactJS/app/components/RegisterComponent.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reactJS/app/components/RegisterComponent.js b/reactJS/app/components/RegisterComponent.js index 7806a88d..4a354d69 100755 --- a/reactJS/app/components/RegisterComponent.js +++ b/reactJS/app/components/RegisterComponent.js @@ -222,7 +222,7 @@ class RegisterComponent extends Component { this.props.dispatch(stepDecrease(this.props.stepIndex)); } - /**convertStringToDate(dateArray) { + convertStringToDate(dateArray) { console.log("convertStringToDate"); console.log(dateArray); let formattedEnteredDates = []; @@ -249,7 +249,7 @@ class RegisterComponent extends Component { } console.log(convertedDatearray); return convertedDatearray; - }*/ + } renderStepActions(step) { const stepIndex = this.props.stepIndex; @@ -386,7 +386,7 @@ class RegisterComponent extends Component { color: '#FFF', chevron: '#FFA726' } - }} layout={layout} width={'100%'} height={height} rowHeight={55} selectedDates={[new Date()]} onSelect={this.storeDate} keyboardSupport={true}/> + }} layout={layout} width={'100%'} height={height} rowHeight={55} selectedDates={this.convertStringToDate(this.props.dateArray)} onSelect={this.storeDate} keyboardSupport={true}/> ); }