Skip to content

Commit

Permalink
OP-1806: fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
olewandowski1 committed Feb 8, 2024
1 parent ca66584 commit 03fdd7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/ContractHeadPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ class ContractHeadPanel extends FormPanel {
value={!!edited && !!edited.dateValidFrom && edited.dateValidFrom}
onChange={(v) => this.updateAttribute("dateValidFrom", v)}
readOnly={readOnlyFields.includes("dateValidFrom") || isAmendment}
// NOTE: maxDate cannot be passed if endDate does not exist.
// NOTE: maxDate cannot be passed if dateValidTo does not exist.
// Passing any other falsy value will block months manipulation.
// eslint-disable-next-line react/jsx-props-no-spreading
{...(edited.dateValidTo ? { maxDate: edited.dateValidTo } : null)}
Expand All @@ -298,7 +298,7 @@ class ContractHeadPanel extends FormPanel {
value={!!edited && !!edited.dateValidTo && edited.dateValidTo}
onChange={(v) => this.updateAttribute("dateValidTo", v)}
readOnly={readOnlyFields.includes("dateValidTo")}
// NOTE: minDate cannot be passed if startDate does not exist.
// NOTE: minDate cannot be passed if dateValidFrom does not exist.
// Passing any other falsy value will block months manipulation.
// eslint-disable-next-line react/jsx-props-no-spreading
{...(edited.dateValidFrom ? { minDate: edited.dateValidFrom } : null)}
Expand Down

0 comments on commit 03fdd7c

Please sign in to comment.