1- import React , { useEffect , useState } from 'react' ;
2- import { AiFillQuestionCircle , AiOutlineQuestionCircle } from 'react-icons/ai' ;
3- import { MdFeedback } from 'react-icons/md' ;
1+ import React , { useState } from 'react' ;
2+ import { AiOutlineQuestionCircle } from 'react-icons/ai' ;
3+ import { MdFeedback } from 'react-icons/md' ;
44import { FaShare } from 'react-icons/fa' ;
5- import posthog from 'posthog-js'
6-
5+ import posthog from 'posthog-js' ;
76
87export function Feedback ( ) {
9- const [ showFeedback , setShowFeedback ] = useState < boolean > ( false ) ;
8+ const [ showFeedback , setShowFeedback ] = useState < boolean > ( false ) ;
109
11- const toggleFeedback = ( ) => {
12- posthog . capture ( 'toggle feedback' )
13- setShowFeedback ( ! showFeedback )
14- }
10+ const toggleFeedback = ( ) => {
11+ posthog . capture ( 'toggle feedback' ) ;
12+ setShowFeedback ( ! showFeedback ) ;
13+ } ;
1514
16- return (
17- < div >
18- {
19- showFeedback &&
20- < div style = { { position : 'fixed' , bottom : '0px' , right : '0px' , paddingRight : '1%' , paddingBottom : '4%' } } >
21- < div className = "card h-100" style = { { backgroundColor : '#121212' , minWidth : '220px' } } >
22- < div className = "card-body" >
23- < div className = "row pb-3" >
24- < div className = "col-3" >
25- < AiOutlineQuestionCircle size = { '25' } color = 'white' />
26- </ div >
27- < div className = 'col-9' >
28- < a href = "https://docs.google.com/forms/d/e/1FAIpQLScQ-g4WB3xFoO8_6cF5yXGu0myqcKdj4QhWi3LD9AKfwLaicQ/viewform?usp=sf_link" target = "_blank" > Submit Feedback</ a >
29- </ div >
30- </ div >
31- < div className = "row" >
32- < div className = "col-3" >
33- < FaShare size = { '25' } color = 'white' />
34- </ div >
35- < div className = 'col-9' >
36- < a href = "https://chrome.google.com/webstore/detail/wallet-guard/pdgbckgdncnhihllonhnjbdoighgpimk" target = "_blank" > Leave a Review</ a >
37- </ div >
38- </ div >
15+ return (
16+ < div >
17+ { showFeedback && (
18+ < div style = { { position : 'fixed' , bottom : '0px' , right : '0px' , paddingRight : '1%' , paddingBottom : '4%' } } >
19+ < div className = "card h-100" style = { { backgroundColor : '#121212' , minWidth : '220px' } } >
20+ < div className = "card-body" >
21+ < div className = "row pb-3" >
22+ < div className = "col-3" >
23+ < AiOutlineQuestionCircle size = { '25' } color = "white" />
24+ </ div >
25+ < div className = "col-9" >
26+ < a href = "https://forms.gle/EmFF6AJWjkux1xku5" target = "_blank" >
27+ Submit Feedback
28+ </ a >
29+ </ div >
30+ </ div >
31+ < div className = "row" >
32+ < div className = "col-3" >
33+ < FaShare size = { '25' } color = "white" />
34+ </ div >
35+ < div className = "col-9" >
36+ < a
37+ href = "https://chrome.google.com/webstore/detail/wallet-guard/pdgbckgdncnhihllonhnjbdoighgpimk"
38+ target = "_blank"
39+ >
40+ Leave a Review
41+ </ a >
3942 </ div >
4043 </ div >
4144 </ div >
42- }
43-
44- < div style = { { position : 'fixed' , bottom : '0px' , right : '0px' , paddingRight : '1%' , paddingBottom : '1%' } } >
45- < button >
46- < MdFeedback size = { '35px' } color = 'gray' onClick = { ( ) => toggleFeedback ( ) } />
47- </ button >
4845 </ div >
4946 </ div >
50- )
51- }
47+ ) }
48+
49+ < div style = { { position : 'fixed' , bottom : '0px' , right : '0px' , paddingRight : '1%' , paddingBottom : '1%' } } >
50+ < button >
51+ < MdFeedback size = { '35px' } color = "gray" onClick = { ( ) => toggleFeedback ( ) } />
52+ </ button >
53+ </ div >
54+ </ div >
55+ ) ;
56+ }
0 commit comments