File tree Expand file tree Collapse file tree
devconnect/src/common/components/perks
lib/components/event-schedule-new Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ const CouponFeed: React.FC<CouponFeedProps> = ({ onCouponsUploaded }) => {
1818 const [ success , setSuccess ] = useState < string | null > ( null )
1919
2020 const couponToUpload = {
21- url : '/dont-push-coupons/zktls-vouchers .csv' ,
22- collection : 'zktls-gating ' ,
21+ url : '/dont-push-coupons/zkid-day .csv' ,
22+ collection : 'zkid-day ' ,
2323 zk_proof_id : 'Devconnect ARG' , // Must match the proof ID used in the perks system
2424 }
2525
Original file line number Diff line number Diff line change @@ -400,9 +400,10 @@ function Event({
400400 const showBuyTickets = event . ticketsUrl ;
401401 const showProgrammingButton = programming && ! showMobileProgramming ;
402402 const showTicketTag = event . ticketsAvailable || event . isCoreEvent ;
403- const isGated = eventShops . some (
403+ const isGated = eventShops . find (
404404 ( shop ) => shop . supabase_id === event . id . toString ( )
405405 ) ;
406+ const hideVisitSite = isGated && isGated . hide_visit_site ;
406407
407408 return (
408409 < >
@@ -613,7 +614,7 @@ function Event({
613614
614615 < div className = "flex justify-between items-center gap-2 flex-wrap" >
615616 < div className = "flex gap-2 items-center flex-wrap" >
616- { showVisitSite && (
617+ { showVisitSite && ! hideVisitSite && (
617618 < Link href = { event . eventLink } className = "self-start" >
618619 < VoxelButton
619620 color = "blue-1"
Original file line number Diff line number Diff line change @@ -24,8 +24,6 @@ export const useFilters = (
2424 favorites : false ,
2525 } ;
2626
27- console . log ( events , "events" ) ;
28-
2927 const [ filter , setFilterState ] = useState < any > ( defaultFilter ) ;
3028
3129 // Compute if any filter is active (differs from default)
Original file line number Diff line number Diff line change @@ -30,6 +30,11 @@ export const customUrlTransforms = [
3030 { from : "defi-today" , to : "107" } ,
3131 { from : "zero-to-dapp" , to : "98" } ,
3232 { from : "zktls-day" , to : "111" } ,
33+ { from : "zkid-day" , to : "119" } ,
34+ { from : "organizer-hangout" , to : "137" } ,
35+ { from : "trustlessagentsday" , to : "136" } ,
36+ // { from: 'stableconnect', to: '112' },
37+ // { from: 'pacificonnect', to: '112' },
3338] ;
3439
3540export type ScheduleProps = {
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ export type EventShop = {
66 custom_url_id ?: string ;
77 global_coupon ?: string ;
88 zupass_disabled ?: boolean ;
9+ hide_visit_site ?: boolean ;
910} ;
1011
1112const zupassGatingFallbackOn =
@@ -47,6 +48,7 @@ export const eventShops: EventShop[] = [
4748 supabase_id : "108" , // money rails event
4849 zupass_proof_id : "Devconnect ARG" ,
4950 gate_link_only : true ,
51+ hide_visit_site : true ,
5052 zupass_disabled : zupassGatingFallbackOn ,
5153 } ,
5254 {
@@ -67,6 +69,19 @@ export const eventShops: EventShop[] = [
6769 coupon_collection : "zktls-gating" ,
6870 zupass_disabled : zupassGatingFallbackOn ,
6971 } ,
72+ {
73+ supabase_id : "119" ,
74+ zupass_proof_id : "Devconnect ARG" ,
75+ coupon_collection : "zkid-day" ,
76+ zupass_disabled : zupassGatingFallbackOn ,
77+ } ,
78+ {
79+ supabase_id : "136" ,
80+ zupass_proof_id : "Devconnect ARG" ,
81+ gate_link_only : true ,
82+ hide_visit_site : true ,
83+ zupass_disabled : zupassGatingFallbackOn ,
84+ } ,
7085 // {
7186 // supabase_id: "113", // ethereum argentina
7287 // zupass_proof_id: "Devconnect ARG",
You can’t perform that action at this time.
0 commit comments