Skip to content

chore: show ticket button in mobile sidebar#170

Open
mejsiejdev wants to merge 1 commit intomainfrom
chore/show-ticket-button-in-mobile-sidebar
Open

chore: show ticket button in mobile sidebar#170
mejsiejdev wants to merge 1 commit intomainfrom
chore/show-ticket-button-in-mobile-sidebar

Conversation

@mejsiejdev
Copy link
Copy Markdown
Member

additionally make the ticketmaster url a const variable reused in all buttons that redirect to tickets

additionally make the ticketmaster url a const variable reused in all buttons that redirect to tickets
@mejsiejdev mejsiejdev marked this pull request as ready for review April 8, 2026 18:37
@mejsiejdev mejsiejdev requested review from kguzek and qamarq as code owners April 8, 2026 18:37
Copilot AI review requested due to automatic review settings April 8, 2026 18:37
@mejsiejdev mejsiejdev self-assigned this Apr 8, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a dedicated “Bilety” (tickets) call-to-action in the mobile navbar sidebar and centralizes the Ticketmaster link into a shared config constant so ticket buttons don’t duplicate the URL.

Changes:

  • Added TICKETMASTER_URL constant in shared config.
  • Replaced hard-coded Ticketmaster links in existing ticket buttons with TICKETMASTER_URL.
  • Enabled/shipped a “Bilety” button in the mobile sidebar.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
src/config/data.ts Introduces TICKETMASTER_URL constant for reuse across the app.
src/components/tickets-coming-soon.tsx Uses TICKETMASTER_URL instead of an inline Ticketmaster link.
src/components/navbar.tsx Uses TICKETMASTER_URL for the main navbar ticket button.
src/components/navbar-mobile.tsx Adds a visible “Bilety” button to the mobile sidebar and points it to TICKETMASTER_URL.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +89 to +97
<Button
as={Link}
href="https://docs.google.com/forms/d/e/1FAIpQLSel3CXdWuvrGTLkkrIMJWkvMqw6AiVz2cy2bAYw5bQntOFRQw/viewform?usp=send_form"
href={TICKETMASTER_URL}
className="!w-full !bg-gradient-main !py-4 before:!bg-black/10 [&_*]:hover:!text-white"
variant="default"
variantColor="white"
>
Turniej flanek
</Button> */}
Bilety
</Button>
Copy link

Copilot AI Apr 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new Ticketmaster button in the mobile sheet doesn’t close the sidebar on click, unlike the NAV_LINKS entries above that call onOpenChange(false). Consider adding an onClick handler to the button/link to close the sheet for consistent behavior (especially if the navigation is interrupted or opened in a new tab).

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants