|
|
|
@ -389,10 +389,18 @@ const DialogFormProyek = ({
|
|
|
|
|
|
|
|
|
|
const handleDatePickerStart = (date, dateString) => { |
|
|
|
|
setStartDate(date); |
|
|
|
|
if (endDate) { |
|
|
|
|
const duration = moment(endDate).diff(moment(date), 'days'); |
|
|
|
|
setProjectDuration(duration); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
const handleDatePickerEnd = (date, dateString) => { |
|
|
|
|
setEndDate(date); |
|
|
|
|
if (startDate) { |
|
|
|
|
const duration = moment(date).diff(moment(startDate), 'days'); |
|
|
|
|
setProjectDuration(duration); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
const nextStep = () => { |
|
|
|
|