Skip to content

Commit ea61c1f

Browse files
committed
fix: make disabled ticket button visually disabled
1 parent 32e5804 commit ea61c1f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/components/Show/ShowsCard.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,10 @@ export default function ShowsCard({}: Readonly<Props>) {
108108
</InfoField>
109109
</div>
110110
<div className="grid grid-cols-1 gap-3 p-3 md:grid-cols-2">
111-
<Button href={show.tickets.live}>
111+
<Button
112+
href={show.tickets.live || ""}
113+
disabled={show.tickets.live === undefined}
114+
>
112115
<Ticket />
113116
Kjøp billetter
114117
</Button>

src/lib/shows.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const SHOWS: Show[] = [
3232
},
3333
{
3434
name: "Siste forestilling",
35-
when: new Date("2026-02-13T20:30:00+0100"),
35+
when: new Date("2026-02-13T20:00:00+0100"),
3636
where: {
3737
name: "Verkstedshallen",
3838
mapLink: "https://maps.app.goo.gl/b8GwxaeLmXmZwPm66",

0 commit comments

Comments
 (0)