Skip to content

Commit 5e32fa9

Browse files
author
Yohann
committedOct 9, 2024
Add prettierrc.json file + correction Project Management + delete old project management page
1 parent b04e911 commit 5e32fa9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1578
-1804
lines changed
 

‎.prettierrc.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"trailingComma": "es5",
3+
"semi": true,
4+
"singleQuote": false,
5+
"useTabs": true
6+
}

‎src/App.tsx

+67-67
Original file line numberDiff line numberDiff line change
@@ -30,81 +30,81 @@ import ScrollToTopButton from "components/layout/ScrollToTopButton/ScrollToTopBu
3030
import CyberSecurity from "components/pages/cyberSecurity";
3131

3232
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;
3535
if (TRACKING_ID) ReactGA.initialize(TRACKING_ID);
3636

3737
function App() {
38-
// const { i18n } = useTranslation();
39-
const location = useLocation();
38+
// const { i18n } = useTranslation();
39+
const location = useLocation();
4040

41-
// const setLanguage = () => {
41+
// const setLanguage = () => {
4242

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+
// }
4848

49-
// useEffect(() => {
50-
// setLanguage();
51-
// // eslint-disable-next-line
52-
// }, []);
49+
// useEffect(() => {
50+
// setLanguage();
51+
// // eslint-disable-next-line
52+
// }, []);
5353

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]);
6262

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+
);
108108
}
109109

110110
export default App;

0 commit comments

Comments
 (0)
Please sign in to comment.