From 61d0380adbd5844bf6a72f79c24d86dc1285f0c2 Mon Sep 17 00:00:00 2001 From: "HAMADA.AYmen" Date: Fri, 25 Sep 2020 22:40:36 +0200 Subject: [PATCH 1/2] Fixed errors on routes [/, /courses, /events, /campusLeaders] --- src/layouts/MainLayout/TopBar/index.js | 1 + src/views/pages/CLView/Apply.js | 2 +- src/views/pages/CLView/ApplyNowModal.js | 8 +++++-- src/views/pages/CLView/CTA.js | 8 +++---- src/views/pages/CLView/StandFor.js | 11 ++++++---- src/views/pages/CoursesView/CTA.js | 6 ++--- src/views/pages/CoursesView/Courses.js | 10 +++------ src/views/pages/CoursesView/Hero.js | 2 +- src/views/pages/EventsView/CTA.js | 6 ++--- src/views/pages/EventsView/Events.js | 2 +- src/views/pages/EventsView/Hero.js | 2 +- .../pages/HomeView/AboutUs/OurTeam/Team.js | 2 +- src/views/pages/HomeView/CTA.js | 6 ++--- src/views/pages/HomeView/Courses.js | 21 +++++------------- src/views/pages/HomeView/Events.js | 2 +- src/views/pages/HomeView/Hero.js | 2 +- src/views/pages/common/Apply.js | 2 +- src/views/pages/common/CourseCard.js | 21 +++++++++--------- src/views/pages/common/Footer.js | 7 +----- src/views/pages/common/Recommendations.js | 22 +++++++++---------- 20 files changed, 67 insertions(+), 76 deletions(-) diff --git a/src/layouts/MainLayout/TopBar/index.js b/src/layouts/MainLayout/TopBar/index.js index 31307836..71499897 100755 --- a/src/layouts/MainLayout/TopBar/index.js +++ b/src/layouts/MainLayout/TopBar/index.js @@ -139,6 +139,7 @@ function TopBar({ className, onMobileNavOpen, ...rest }) { {navItems.map((item, index) => ( - +
- {countryCodes.map(code => { - return +{code}; + {countryCodes.map((code, index) => { + return ( + + +{code} + + ); })} diff --git a/src/views/pages/CLView/CTA.js b/src/views/pages/CLView/CTA.js index 3da9c578..c098d34a 100755 --- a/src/views/pages/CLView/CTA.js +++ b/src/views/pages/CLView/CTA.js @@ -136,7 +136,7 @@ function CTA({ className, ...rest }) { - + diff --git a/src/views/pages/CLView/StandFor.js b/src/views/pages/CLView/StandFor.js index 2519bc5f..6f0dcd71 100644 --- a/src/views/pages/CLView/StandFor.js +++ b/src/views/pages/CLView/StandFor.js @@ -116,28 +116,31 @@ function StandsFor({ className, ...rest }) { He/she shall be entusiastic about going social and build & - contribute for the community

- An Initiative taker

+ contribute for the community
+ - An Initiative taker
A Leader shall always have a way of talking people out from problems and leading them to do that for others too{' '} -

- A Community Builder

+ - A Community Builder
He/she should be connecting to the resources available in community that might help in building a better & more - helpful community

- A Resource Seeker

+ helpful community
+ - A Resource Seeker
Most sought after value - an effort maker and giving - peronality

- An Investor

+ peronality
+ - An Investor
diff --git a/src/views/pages/CoursesView/CTA.js b/src/views/pages/CoursesView/CTA.js index 3ef99d12..8f0a9ef7 100755 --- a/src/views/pages/CoursesView/CTA.js +++ b/src/views/pages/CoursesView/CTA.js @@ -92,7 +92,7 @@ function CTA({ className, ...rest }) { - +