Skip to content

4 more React.FormEvent deprecation sites (ts6385) — finish the #442 migration #539

Description

@usirin

What I was doing

Reviewing PR #536 (issue #442), which replaced the deprecated React.FormEvent with React.SyntheticEvent in apps/web/src/pages/SozlukHome.tsx. The review-code gate noted the same deprecation lives in sibling files that #442's scope explicitly excluded.

What I observed

Four more apps/web/src files use the deprecated React.FormEvent (TS 6385 — FormEvent carries @deprecated in the pinned @types/react, SyntheticEvent does not):

  • DefinitionCard
  • SozlukTermPage
  • PanoPostDetail
  • PanoSubmitPage

(Exact paths/lines to be confirmed by the implementer via grep -rn 'React.FormEvent' apps/web/src.) #442 named only SozlukHome.tsx, so these were correctly left untouched there — they are the remaining instances of the same one-line fix.

Why it matters

Same deprecation warning class, low-risk mechanical fix. Clearing them removes the residual ts6385 hints and finishes the migration #442 started. No behavior change expected (the handlers still call e.preventDefault(); SyntheticEvent is the non-deprecated supertype of FormEvent).

Pointers

Suggested next step (non-binding)

One small PR applying the same React.FormEventReact.SyntheticEvent change to all four sites, typecheck to confirm ts6385 is gone. Guess only — triage's call.


Filed by an agent · session bcb88368-23f1-44a9-9302-e517e0fe9afb · branch main · 2026-06-17T04:54:43Z

Metadata

Metadata

Assignees

Labels

p2Lowest prioritystatus:triagedTriage signed off; ready for write-code to picktype:choreNo behavior change

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions