Skip to content

feat: Centralized ticket release#151

Merged
agustints merged 1 commit intomainfrom
feat/centralized-ticket-release
Oct 13, 2025
Merged

feat: Centralized ticket release#151
agustints merged 1 commit intomainfrom
feat/centralized-ticket-release

Conversation

@agustints
Copy link
Member

This pull request refactors the logic for determining when tickets are released for the 2025 meetup by centralizing it into a reusable React hook. This improves code maintainability and ensures consistent behavior across components that need ticket release information.

Centralization of ticket release logic:

  • Introduced a new useTicketRelease hook in src/hooks/useTicketRelease.ts that encapsulates the release date, ticket URL, and real-time release status logic.
  • Updated both Hero and TicketHome components to use the new useTicketRelease hook instead of duplicating ticket release logic, removing local state and effect code. (src/components/Meetups/2025/Hero/index.tsx: [1] [2] [3]; src/components/Meetups/2025/TicketHome/index.tsx: [4] [5]

Consistency and maintainability improvements:

  • Ensured that the ticket URL and release date are defined in one place, reducing the risk of discrepancies and simplifying future updates.

@agustints agustints merged commit 9a8bbf4 into main Oct 13, 2025
1 check passed
@agustints agustints deleted the feat/centralized-ticket-release branch October 13, 2025 05:17
@github-actions
Copy link

Deploy preview for owu ready!

✅ Preview
https://owu-g5x95nl9y-owu.vercel.app

Built with commit ab79584.
This pull request is being automatically deployed with vercel-action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant