@@ -30,81 +30,81 @@ import ScrollToTopButton from "components/layout/ScrollToTopButton/ScrollToTopBu
30
30
import CyberSecurity from "components/pages/cyberSecurity" ;
31
31
32
32
const TRACKING_ID = process . env . REACT_APP_GA_TRACKING_ID
33
- ? process . env . REACT_APP_GA_TRACKING_ID
34
- : null ;
33
+ ? process . env . REACT_APP_GA_TRACKING_ID
34
+ : null ;
35
35
if ( TRACKING_ID ) ReactGA . initialize ( TRACKING_ID ) ;
36
36
37
37
function App ( ) {
38
- // const { i18n } = useTranslation();
39
- const location = useLocation ( ) ;
38
+ // const { i18n } = useTranslation();
39
+ const location = useLocation ( ) ;
40
40
41
- // const setLanguage = () => {
41
+ // const setLanguage = () => {
42
42
43
- // const lang = localStorage.getItem('lang');
44
- // if(lang){
45
- // i18n.changeLanguage(lang);
46
- // }
47
- // }
43
+ // const lang = localStorage.getItem('lang');
44
+ // if(lang){
45
+ // i18n.changeLanguage(lang);
46
+ // }
47
+ // }
48
48
49
- // useEffect(() => {
50
- // setLanguage();
51
- // // eslint-disable-next-line
52
- // }, []);
49
+ // useEffect(() => {
50
+ // setLanguage();
51
+ // // eslint-disable-next-line
52
+ // }, []);
53
53
54
- useEffect ( ( ) => {
55
- if ( TRACKING_ID )
56
- ReactGA . send ( {
57
- hitType : "pageview" ,
58
- page : location . pathname + location . search ,
59
- title : location . pathname ,
60
- } ) ;
61
- } , [ location ] ) ;
54
+ useEffect ( ( ) => {
55
+ if ( TRACKING_ID )
56
+ ReactGA . send ( {
57
+ hitType : "pageview" ,
58
+ page : location . pathname + location . search ,
59
+ title : location . pathname ,
60
+ } ) ;
61
+ } , [ location ] ) ;
62
62
63
- return (
64
- < >
65
- < div className = "App" >
66
- < WelcomePopUp />
67
- < CookiePopUp />
68
- < ScrollToTop />
69
- < Routes >
70
- < Route path = "/" element = { < Homepage /> } />
71
- < Route path = "/about-us" element = { < AboutUs /> } />
72
- < Route path = "/project-management" element = { < ProjectManagement /> } />
73
- < Route path = "/cyber-security" element = { < CyberSecurity /> } />
74
- < Route path = "/solutions" element = { < Solutions /> } />
75
- < Route path = "/solution/:id" element = { < Solution /> } />
76
- < Route path = "/white-paper/:id" element = { < WhitePaper /> } />
77
- < Route
78
- path = "/white-paper/inquiry"
79
- element = { < WhitePaperInquiryNotice /> }
80
- />
81
- < Route path = "/case-studies" element = { < CaseStudies /> } />
82
- < Route path = "/case-study/:id" element = { < CaseStudy /> } />
83
- < Route path = "/insights" element = { < Insights /> } />
84
- < Route path = "/insight/:id" element = { < Insight /> } />
85
- < Route path = "/our-clients" element = { < OurClients /> } />
86
- < Route path = "/events" element = { < Events /> } />
87
- < Route path = "/event/:id" element = { < Event /> } />
88
- < Route path = "/contact-us" element = { < ContactUs /> } />
89
- < Route
90
- path = "/contact-us/inquiry"
91
- element = { < ContactUsInquiryNotice /> }
92
- />
93
- < Route
94
- path = "/terms-and-conditions"
95
- element = { < TermsAndConditions /> }
96
- />
97
- < Route path = "/privacy-policy" element = { < PrivacyPolicy /> } />
98
- < Route path = "/cookie-policy" element = { < CookiePolicy /> } />
99
- < Route
100
- path = "/confirmation/:id"
101
- element = { < SubscriberConfirmation /> }
102
- />
103
- </ Routes >
104
- < ScrollToTopButton />
105
- </ div >
106
- </ >
107
- ) ;
63
+ return (
64
+ < >
65
+ < div className = "App" >
66
+ < WelcomePopUp />
67
+ < CookiePopUp />
68
+ < ScrollToTop />
69
+ < Routes >
70
+ < Route path = "/" element = { < Homepage /> } />
71
+ < Route path = "/about-us" element = { < AboutUs /> } />
72
+ < Route path = "/project-management" element = { < ProjectManagement /> } />
73
+ < Route path = "/cyber-security" element = { < CyberSecurity /> } />
74
+ < Route path = "/solutions" element = { < Solutions /> } />
75
+ < Route path = "/solution/:id" element = { < Solution /> } />
76
+ < Route path = "/white-paper/:id" element = { < WhitePaper /> } />
77
+ < Route
78
+ path = "/white-paper/inquiry"
79
+ element = { < WhitePaperInquiryNotice /> }
80
+ />
81
+ < Route path = "/case-studies" element = { < CaseStudies /> } />
82
+ < Route path = "/case-study/:id" element = { < CaseStudy /> } />
83
+ < Route path = "/insights" element = { < Insights /> } />
84
+ < Route path = "/insight/:id" element = { < Insight /> } />
85
+ < Route path = "/our-clients" element = { < OurClients /> } />
86
+ < Route path = "/events" element = { < Events /> } />
87
+ < Route path = "/event/:id" element = { < Event /> } />
88
+ < Route path = "/contact-us" element = { < ContactUs /> } />
89
+ < Route
90
+ path = "/contact-us/inquiry"
91
+ element = { < ContactUsInquiryNotice /> }
92
+ />
93
+ < Route
94
+ path = "/terms-and-conditions"
95
+ element = { < TermsAndConditions /> }
96
+ />
97
+ < Route path = "/privacy-policy" element = { < PrivacyPolicy /> } />
98
+ < Route path = "/cookie-policy" element = { < CookiePolicy /> } />
99
+ < Route
100
+ path = "/confirmation/:id"
101
+ element = { < SubscriberConfirmation /> }
102
+ />
103
+ </ Routes >
104
+ < ScrollToTopButton />
105
+ </ div >
106
+ </ >
107
+ ) ;
108
108
}
109
109
110
110
export default App ;
0 commit comments