wip: E-mandate home screen
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user