chore: project cycle bug fixes and improvement (#3427)
* chore: burndown chart's completed at changes * chore: project cycle bug fixes and improvement * chore: cycle state constant updated --------- Co-authored-by: NarayanBavisetti <narayan3119@gmail.com>
This commit is contained in:
parent
49452a68ab
commit
fd5326dec6
11 changed files with 149 additions and 212 deletions
|
|
@ -70,7 +70,7 @@ export const ModuleForm: React.FC<Props> = ({
|
|||
const startDate = watch("start_date");
|
||||
const targetDate = watch("target_date");
|
||||
|
||||
const minDate = startDate ? new Date(startDate) : null;
|
||||
const minDate = startDate ? new Date(startDate) : new Date();
|
||||
minDate?.setDate(minDate.getDate());
|
||||
|
||||
const maxDate = targetDate ? new Date(targetDate) : null;
|
||||
|
|
@ -159,6 +159,7 @@ export const ModuleForm: React.FC<Props> = ({
|
|||
onChange={(date) => onChange(date ? renderFormattedPayloadDate(date) : null)}
|
||||
buttonVariant="border-with-text"
|
||||
placeholder="Start date"
|
||||
minDate={new Date()}
|
||||
maxDate={maxDate ?? undefined}
|
||||
tabIndex={3}
|
||||
/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue