feat: implement check-in submission logic with hook and validation
This commit is contained in:
@@ -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`.
|
||||
Reference in New Issue
Block a user