chore(types): replace deprecated FormEvent with SyntheticEvent

React 19's @types/react flags FormEvent as deprecated — quote: 'FormEvent
doesn't actually exist. You probably meant to use ChangeEvent, InputEvent,
SubmitEvent, or just SyntheticEvent'. All 17 call sites in this repo
typed form onSubmit handlers and only called e.preventDefault(), so
SyntheticEvent is the correct general replacement.

No behavior change — pure type-level cleanup that clears the chronic
deprecation hint that has been showing up after every edit to any
form-bearing page.
This commit is contained in:
c0mrade
2026-05-26 15:24:01 +03:00
parent 62eaef2f53
commit cf469a1a9f
17 changed files with 21 additions and 21 deletions

View File

@@ -177,7 +177,7 @@ export default function AdminTickets() {
}
};
const handleReply = async (e: React.FormEvent) => {
const handleReply = async (e: React.SyntheticEvent) => {
e.preventDefault();
if (!selectedTicketId) return;
if (attachments.some((a) => a.uploading || a.error)) return;