Connect /ticket page to API
Closed this issue · 1 comments
AdrianAndersen commented
- Get a ticket ID from either a query param or a dynamic path. Eg. /ticket/yourTicketID
- Fetch ticket upon load
- Check the photo_consent of the fetched user:
- if the user has registered consent -> show ticket
- else, display the photo_consent prompt
- Connect the photo_consent prompt to call the api to set the consent for the user
- Display the actual ticket for the user (the user ID) if the ticket is active and unused
- If the ticket is used or inactive, display only a warning