@@ -2,8 +2,8 @@ import React, { useContext } from "react";
2
2
import dayjs from "dayjs" ;
3
3
import Button from "components/con/common/Button" ;
4
4
import { Price , Offer } from "types/con" ;
5
- import useEventBriteModal from "hooks/con/useEventBriteModal" ;
6
5
import { LanguageContext } from "contexts/con/LanguageContext" ;
6
+ import { currentEdition } from "data/con/editions" ;
7
7
8
8
interface PricingCardProps {
9
9
price : Price ;
@@ -12,8 +12,6 @@ interface PricingCardProps {
12
12
export default function PricingCard ( { price } : PricingCardProps ) {
13
13
const { t, locale } = useContext ( LanguageContext ) ;
14
14
15
- useEventBriteModal ( `price${ price . id } ` ) ;
16
-
17
15
const isActiveOffer = ( offer : Offer ) => {
18
16
if ( offer . limitDate && dayjs ( offer . limitDate ) . isBefore ( dayjs ( ) , "day" ) )
19
17
return false ;
@@ -26,10 +24,7 @@ export default function PricingCard({ price }: PricingCardProps) {
26
24
27
25
return (
28
26
< 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" >
33
28
< div className = "w-full bg-blue p-5 text-center" >
34
29
< h3 className = "uppercase font-title font-bold text-2xl text-white lined-center lined-white" >
35
30
{ price . title [ locale ] }
@@ -57,6 +52,7 @@ export default function PricingCard({ price }: PricingCardProps) {
57
52
< Button
58
53
className = "square absolute bottom-0 translate-y-1/2 left-1/2 -translate-x-1/2 hover:bg-white"
59
54
size = "small"
55
+ to = { `/${ locale } /con/${ currentEdition } /tickets` }
60
56
>
61
57
{ t ( "buy_tickets" ) }
62
58
</ Button >
0 commit comments