diff --git a/src/ReportSnapshots.tsx b/src/ReportSnapshots.tsx
index ca9e433..e0a8944 100644
--- a/src/ReportSnapshots.tsx
+++ b/src/ReportSnapshots.tsx
@@ -15,6 +15,7 @@ import {
DialogContentText,
DialogActions,
Chip,
+ TextField,
} from "@mui/material";
import DeleteIcon from "@mui/icons-material/Delete";
import AddCircleIcon from "@mui/icons-material/AddCircle";
@@ -131,28 +132,30 @@ export default function ReportSnapshots() {
/>
)}
-
- {startDateField && components?.date && (
+
- setStartDate(val)}
+ onChange={(e: React.ChangeEvent) => setStartDate(e.target.value)}
+ size="small"
+ InputLabelProps={{ shrink: true }}
+ inputProps={{ max: new Date().toISOString().split("T")[0] }}
/>
- )}
- {endDateField && components?.date && (
- setEndDate(val)}
+ onChange={(e: React.ChangeEvent) => setEndDate(e.target.value)}
+ size="small"
+ InputLabelProps={{ shrink: true }}
+ inputProps={{ max: new Date().toISOString().split("T")[0] }}
/>
- )}
-
+
{minAmountField && components?.FormField && (