fix: date validation, pre-fill on re-edit, MS_PER_DAY constant

- Extract MS_PER_DAY constant to lib/constants.ts
- ConfirmModal date: max=1 year, rejects past dates and malformed years
- ConfirmModal pre-fills existing date + group when re-editing (✎)
- Confirmed date display handles malformed dates gracefully
- Red border + error for invalid dates, submit disabled
This commit is contained in:
2026-03-24 18:26:28 +03:00
parent f6d0491ca5
commit 745d72f36d
3 changed files with 34 additions and 13 deletions
+2
View File
@@ -1,5 +1,7 @@
import type { NavLink } from "@/types";
export const MS_PER_DAY = 24 * 60 * 60 * 1000;
export const BRAND = {
name: "BLACK HEART DANCE HOUSE",
shortName: "Blackheart",