@@ -2,7 +2,6 @@ import React from 'react'
22import Accordion from '@site/src/components/Accordion'
33import Text from '@site/src/components/Text'
44import styles from './faq.module.scss'
5- import { trackClickForSegment } from '@site/src/lib/segmentAnalytics'
65
76interface IFaq {
87 network : 'linea' | 'sepolia'
@@ -12,49 +11,6 @@ interface IFaq {
1211}
1312
1413export default function Faq ( { network, className, classNameHeading, isLimitedUserPlan } : IFaq ) {
15- const handleClickContactUs = ( ) => {
16- trackClickForSegment ( {
17- eventName : 'Contact us' ,
18- clickType : `Link in ${ network } FAQ` ,
19- userExperience : 'B' ,
20- responseStatus : null ,
21- responseMsg : null ,
22- timestamp : Date . now ( ) ,
23- } )
24- }
25-
26- const handleClickLinea = ( ) => {
27- trackClickForSegment ( {
28- eventName : 'What is Linea' ,
29- clickType : `Link in ${ network } FAQ` ,
30- userExperience : 'B' ,
31- responseStatus : null ,
32- responseMsg : null ,
33- timestamp : Date . now ( ) ,
34- } )
35- }
36-
37- const handleClickDiscord = ( ) => {
38- trackClickForSegment ( {
39- eventName : 'Consensys Discord' ,
40- clickType : `Link in ${ network } FAQ` ,
41- userExperience : 'B' ,
42- responseStatus : null ,
43- responseMsg : null ,
44- timestamp : Date . now ( ) ,
45- } )
46- }
47-
48- const handleClickBridge = ( ) => {
49- trackClickForSegment ( {
50- eventName : 'Bridge' ,
51- clickType : `Link in ${ network } FAQ` ,
52- userExperience : 'B' ,
53- responseStatus : null ,
54- responseMsg : null ,
55- timestamp : Date . now ( ) ,
56- } )
57- }
5814
5915 switch ( network ) {
6016 case 'linea' :
@@ -100,7 +56,6 @@ export default function Faq({ network, className, classNameHeading, isLimitedUse
10056 < span >
10157 < a
10258 data-testid = "faq-linea-what-is-linea"
103- onClick = { handleClickLinea }
10459 target = "_blank"
10560 href = "https://linea.build" >
10661 Linea
@@ -122,7 +77,6 @@ export default function Faq({ network, className, classNameHeading, isLimitedUse
12277 < span >
12378 < a
12479 data-testid = "faq-linea-contact-us"
125- onClick = { handleClickContactUs }
12680 target = "_blank"
12781 href = "https://support.metamask.io/" >
12882 Contact support
@@ -140,7 +94,6 @@ export default function Faq({ network, className, classNameHeading, isLimitedUse
14094 If you have ideas on how to improve the faucet, feel free to submit them on{ ' ' }
14195 < a
14296 data-testid = "faq-linea-discord"
143- onClick = { handleClickDiscord }
14497 target = "_blank"
14598 href = "https://discord.com/invite/consensys" >
14699 Discord.
@@ -158,7 +111,6 @@ export default function Faq({ network, className, classNameHeading, isLimitedUse
158111 ETH comes from Sepolia ETH that is bridged to Linea using the canonical{ ' ' }
159112 < a
160113 data-testid = "faq-linea-bridge"
161- onClick = { handleClickBridge }
162114 target = "_blank"
163115 href = "https://bridge.linea.build" >
164116 bridge.
@@ -211,7 +163,6 @@ export default function Faq({ network, className, classNameHeading, isLimitedUse
211163 < span >
212164 < a
213165 data-testid = "faq-sepolia-contact-us"
214- onClick = { handleClickContactUs }
215166 target = "_blank"
216167 href = "https://support.metamask.io/" >
217168 Contact support
@@ -229,7 +180,6 @@ export default function Faq({ network, className, classNameHeading, isLimitedUse
229180 If you have ideas on how to improve the faucet, feel free to submit them on{ ' ' }
230181 < a
231182 data-testid = "faq-sepolia-discord"
232- onClick = { handleClickDiscord }
233183 target = "_blank"
234184 href = "https://discord.com/invite/consensys" >
235185 Discord.
0 commit comments