Skip to content

Commit 8473dbe

Browse files
committed
fix: pricing card 2025
1 parent bff4fd1 commit 8473dbe

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

pwa/components/con/home/Pricing/PricingCard.tsx

+3-7
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import React, { useContext } from "react";
22
import dayjs from "dayjs";
33
import Button from "components/con/common/Button";
44
import { Price, Offer } from "types/con";
5-
import useEventBriteModal from "hooks/con/useEventBriteModal";
65
import { LanguageContext } from "contexts/con/LanguageContext";
6+
import { currentEdition } from "data/con/editions";
77

88
interface PricingCardProps {
99
price: Price;
@@ -12,8 +12,6 @@ interface PricingCardProps {
1212
export default function PricingCard({ price }: PricingCardProps) {
1313
const { t, locale } = useContext(LanguageContext);
1414

15-
useEventBriteModal(`price${price.id}`);
16-
1715
const isActiveOffer = (offer: Offer) => {
1816
if (offer.limitDate && dayjs(offer.limitDate).isBefore(dayjs(), "day"))
1917
return false;
@@ -26,10 +24,7 @@ export default function PricingCard({ price }: PricingCardProps) {
2624

2725
return (
2826
<div className="p-1 mb-14 relative transition-all max-w-sm w-full saturate-50 first:saturate-100 group | md:mb-8 md:max-w-none md:w-1/2 md:first:z-10 md:first:scale-110 | lg:w-1/3">
29-
<div
30-
className="flex flex-col items-center h-full justify-center shadow-md transition-all relative cursor-pointer hover:rotate-3 hover:shadow-xl hover:translate-x-4 hover:scale-105 group-first:hover:-translate-x-4 group-first:hover:-rotate-3"
31-
id={`price${price.id}`}
32-
>
27+
<div className="flex flex-col items-center h-full justify-center shadow-md transition-all relative hover:rotate-3 hover:shadow-xl hover:translate-x-4 hover:scale-105 group-first:hover:-translate-x-4 group-first:hover:-rotate-3">
3328
<div className="w-full bg-blue p-5 text-center">
3429
<h3 className="uppercase font-title font-bold text-2xl text-white lined-center lined-white">
3530
{price.title[locale]}
@@ -57,6 +52,7 @@ export default function PricingCard({ price }: PricingCardProps) {
5752
<Button
5853
className="square absolute bottom-0 translate-y-1/2 left-1/2 -translate-x-1/2 hover:bg-white"
5954
size="small"
55+
to={`/${locale}/con/${currentEdition}/tickets`}
6056
>
6157
{t("buy_tickets")}
6258
</Button>

0 commit comments

Comments
 (0)