@@ -26,7 +26,7 @@ const mediaItemRowCount = 3
2626
2727const renderEditableTargetAttribute = (
2828 {
29- attrName, value, targetDate, editUrl, showTime = false
29+ attrName, value, targetDate, editUrl, dateLabel , showTime = false
3030 }
3131) => (
3232 < InfoItemContainer >
@@ -46,7 +46,7 @@ const renderEditableTargetAttribute = (
4646 }
4747 { targetDate && (
4848 < div className = 'mt2 f7 warn-crimson b' >
49- Deadline : { moment ( targetDate ) . format ( 'YYYY-MM-DD' + ( showTime ? ', h:mm' : '' ) ) } { showTime ? ' hrs' : '' }
49+ { dateLabel } : { moment ( targetDate ) . format ( 'YYYY-MM-DD' + ( showTime ? ', h:mm' : '' ) ) } { showTime ? ' hrs' : '' }
5050 </ div >
5151 ) }
5252 </ div >
@@ -506,6 +506,7 @@ class CaseDetails extends Component {
506506 </ div >
507507 { renderEditableTargetAttribute ( {
508508 attrName : 'Solution' ,
509+ dateLabel : 'Deadline' ,
509510 value : solution ,
510511 targetDate : solutionDeadline && new Date ( solutionDeadline ) ,
511512 editUrl : `${ match . url } /solution`
@@ -514,6 +515,7 @@ class CaseDetails extends Component {
514515 < CaseTargetAttrDialog
515516 show = { ! ! subMatch }
516517 attrName = 'Solution'
518+ dateLabel = 'Deadline'
517519 initialValue = { solution }
518520 initialDate = { solutionDeadline && new Date ( solutionDeadline ) }
519521 onSubmit = { ( value , date ) => {
@@ -531,13 +533,15 @@ class CaseDetails extends Component {
531533 { renderEditableTargetAttribute ( {
532534 attrName : 'Next steps' ,
533535 value : nextSteps ,
536+ dateLabel : 'Next Step Date' ,
534537 targetDate : nextStepsBy && new Date ( nextStepsBy ) ,
535538 editUrl : `${ match . url } /nextSteps`
536539 } ) }
537540 < Route path = { `${ match . url } /nextSteps` } children = { ( { match : subMatch } ) => (
538541 < CaseTargetAttrDialog
539542 show = { ! ! subMatch }
540543 attrName = 'Next Steps'
544+ dateLabel = 'Next Step Date'
541545 initialValue = { nextSteps }
542546 initialDate = { nextStepsBy && new Date ( nextStepsBy ) }
543547 onSubmit = { ( value , date ) => {
0 commit comments