feat(web/input): min and max date

This commit is contained in:
Luke committed 2023-01-14 13:36:30 +01:00
1 parent d621aca29f
commit 5245e27a75
2 files changed
+5

No files matched your search

@@ -31,6 +31,8 @@ const DateField: React.FC<Props> = (props) => {
inputFormat="DD/MM/YYYY"
withAsterisk={props.row.required}
clearable={props.row.clearable}
minDate={props.row.min ? new Date(props.row.min) : undefined}
maxDate={props.row.max ? new Date(props.row.max) : undefined}
/>
);
};