List earlier date earlier than upper date

This commit is contained in:
Mateusz Konieczny 2022-02-17 10:50:05 +01:00
parent f96756f283
commit 07165361b3

View File

@ -61,18 +61,6 @@ class YearDataEntry extends Component<YearDataEntryProps, any> {
verified_count={props.verified_count}
/>
<NumericDataEntry
title={dataFields.date_upper.title}
slug="date_upper"
value={props.upper}
mode={props.mode}
copy={props.copy}
onChange={props.onChange}
step={1}
min={1}
max={currentYear}
tooltip={dataFields.date_upper.tooltip}
/>
<NumericDataEntry
title={dataFields.date_lower.title}
slug="date_lower"
@ -85,6 +73,19 @@ class YearDataEntry extends Component<YearDataEntryProps, any> {
max={currentYear}
tooltip={dataFields.date_lower.tooltip}
/>
<NumericDataEntry
title={dataFields.date_upper.title}
slug="date_upper"
value={props.upper}
mode={props.mode}
copy={props.copy}
onChange={props.onChange}
step={1}
min={1}
max={currentYear}
tooltip={dataFields.date_upper.tooltip}
/>
</Fragment>
);
}