feat: implement check-in submission logic with hook and validation

This commit is contained in:
2026-02-13 14:06:30 +08:00
parent 170afb4a3b
commit b4e32d5a6d
6 changed files with 281 additions and 3 deletions

View File

@@ -0,0 +1,9 @@
### useCheckinSubmit Hook
- Created `src/hooks/data/useCheckinSubmit.ts` using `postEventCheckinSubmitMutation` from `@/client/@tanstack/react-query.gen`.
- Integrated `sonner` for success and error toasts.
- Followed the pattern from `useJoinEvent.ts`.
### CheckinScannerNav Implementation
- `CheckinScannerNavView` validation logic implemented with regex `^\d{6}$`.
- `CheckinScannerNavContainer` connects the hook to the view.
- Type checking passed with `bun tsc -b`.