wip: E-mandate home screen

This commit is contained in:
2025-09-24 13:23:07 +05:30
parent 050244291a
commit 960624f934
4 changed files with 297 additions and 6 deletions

View File

@@ -108,12 +108,12 @@ export default function AccountStatementPage() {
});
return;
}
if (end.diff(start, "day") > 90) {
if (end.diff(start, "day") > 30) {
notifications.show({
withBorder: true,
color: "red",
title: "Invalid Date range",
message: "End date must be within 90 days from start date",
message: "End date must be within 30 days from start date",
autoClose: 4000,
});
return;
@@ -179,12 +179,16 @@ export default function AccountStatementPage() {
value={startDate}
onChange={setStartDate}
placeholder="Enter start date"
minDate={dayjs("1920-01-01").toDate()}
maxDate={dayjs().toDate()}
/>
<DateInput
label="End Date"
value={endDate}
onChange={setEndDate}
placeholder="Enter end date"
minDate={dayjs("1920-01-01").toDate()}
maxDate={dayjs().toDate()}
/>
<Button fullWidth mt="md" onClick={handleAccountTransaction}>
Proceed