Frontend minor cleanups: unused imports, memoization, query key constants #19
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context: Several small cleanup opportunities:
useMemofor VIP name transformation in EventForm.tsx (line 222-225)bg-backgroundvsbg-card) across list pagesFiles affected:
frontend/src/components/EventForm.tsx(lines 1-4, 222-225)frontend/src/pages/EventList.tsx(lines 1-10)frontend/src/pages/VipList.tsx(line 293) vsDriverList.tsx(line 307)Suggested fix:
useMemofrontend/src/lib/query-keys.tswith typed query key constantsEffort: Trivial
Created with centralized constants. Cleaned up unused imports, added useMemo, standardized filter button styling.