From 0f95bed8c30b8fe8354d8cf516db34671293f36f Mon Sep 17 00:00:00 2001 From: M Viraj Prabhu Date: Wed, 15 May 2024 17:54:41 +0530 Subject: [PATCH] Revert "Old dev" --- src/App.js | 3 +- src/Components/Footer/Footer.jsx | 2 +- src/Components/Navbar/Mylinks.jsx | 36 +++++++------------ .../Events/BuildForTeam/BuildForTeam.jsx | 3 +- src/Pages/Events/ISR/ISR.jsx | 28 +++++++-------- src/Pages/Roadmap/Roadmap.jsx | 18 ---------- src/Pages/Teams/Teams.jsx | 2 +- 7 files changed, 30 insertions(+), 62 deletions(-) delete mode 100644 src/Pages/Roadmap/Roadmap.jsx diff --git a/src/App.js b/src/App.js index 2a1e5a1f3..84c03e7c7 100644 --- a/src/App.js +++ b/src/App.js @@ -14,7 +14,6 @@ import Career from "./Pages/Career/Career"; import LeaderBoard from "./Pages/LeaderBoard/leaderBoard"; import WikiSyllabus from "./Pages/WikiSyllabus/WikiSyllabus"; import HacktoberFest from "./Pages/Events/HacktoberFest/HacktoberFest"; -import Roadmap from "./Pages/Roadmap/Roadmap"; // import Yip from "./Pages/YIP/Yip"; import CampusChapters from "./Pages/CampusChapters/CampusChapters"; import BlogLanding from "./Pages/CampusChapters/Blogs/BlogLanding"; @@ -117,13 +116,13 @@ function App() { } /> } /> } /> - } /> } /> } /> } /> } /> } /> } /> + } /> diff --git a/src/Components/Footer/Footer.jsx b/src/Components/Footer/Footer.jsx index 6096cfc7c..d6702302b 100644 --- a/src/Components/Footer/Footer.jsx +++ b/src/Components/Footer/Footer.jsx @@ -70,7 +70,7 @@ const Footer = () => { /> diff --git a/src/Components/Navbar/Mylinks.jsx b/src/Components/Navbar/Mylinks.jsx index a8056ada8..c35a25576 100644 --- a/src/Components/Navbar/Mylinks.jsx +++ b/src/Components/Navbar/Mylinks.jsx @@ -118,13 +118,6 @@ export const links = [ name: "Others", submenu: true, sublinks: [ - { - name: "Roadmaps", - submenu: false, - sublinks: [], - link: "/roadmap", - foreign: false, - }, { name: "Magazine", submenu: false, @@ -140,6 +133,8 @@ export const links = [ foreign: false, }, ], + + }, ], }, @@ -195,7 +190,14 @@ export const links = [ link: "https://launchpadkerala.org/", foreign: true, }, - , + { + name: "in50hours", + submenu: false, + sublinks: [], + link: "/in50hours", + foreign: false, + } + ], }, { @@ -566,7 +568,7 @@ export const links = [ submenu: false, sublinks: [], foreign: true, - }, + } ], }, { @@ -580,7 +582,7 @@ export const links = [ submenu: false, sublinks: [], foreign: false, - }, + } ], }, ], @@ -730,20 +732,6 @@ export function getLinks(ig = []) { link: "/artofteaching", foreign: false, }, - { - name: "Top100 Coders", - submenu: false, - sublinks: [], - link: "https://top100coders.com/", - foreign: true, - }, - { - name: "IEEE Launchpad", - submenu: false, - sublinks: [], - link: "https://launchpadkerala.org/", - foreign: true, - } ], }, { diff --git a/src/Pages/Events/BuildForTeam/BuildForTeam.jsx b/src/Pages/Events/BuildForTeam/BuildForTeam.jsx index e445b72b4..54aa9fa46 100644 --- a/src/Pages/Events/BuildForTeam/BuildForTeam.jsx +++ b/src/Pages/Events/BuildForTeam/BuildForTeam.jsx @@ -56,8 +56,7 @@ const Build4Team = () => { Join Whatsapp Group - - */} + */} { const [isrData, setisrData] = useState([]) const [error, setError] = useState() - useEffect(() => { - const fetchData = async () => { - try { - const response = await axios.get("https://opensheet.elk.sh/1r5Pav8TlUEao_9GuMcFasKUEPSDIJOPB9PXKbt4KlTQ/isrcsv"); - setisrData(response.data); - } catch (error) { - console.error(error); - setError("We are currently facing some difficulties in fetching the data at the moment, will be back soon."); - } - }; - - fetchData(); - }, []); + axios + .get( + "https://opensheet.elk.sh/1r5Pav8TlUEao_9GuMcFasKUEPSDIJOPB9PXKbt4KlTQ/isrcsv" + ) + .then((response) => { + setisrData(response.data) + }) + .catch((error) => { + console.log(error) + setError( + "We are currently facing some difficulties in fetching the data at the moment, will be back soon." + ) + }) const ReadMore = ({ children }) => { const text = children diff --git a/src/Pages/Roadmap/Roadmap.jsx b/src/Pages/Roadmap/Roadmap.jsx deleted file mode 100644 index 53f7e71cb..000000000 --- a/src/Pages/Roadmap/Roadmap.jsx +++ /dev/null @@ -1,18 +0,0 @@ -import React from "react"; -import Navbar from "../../Components/Navbar/Navbar"; - -function Roadmap() { - return ( -
- - -
- ); -} - -export default Roadmap; diff --git a/src/Pages/Teams/Teams.jsx b/src/Pages/Teams/Teams.jsx index 1d54e3994..cb9ccf7f9 100644 --- a/src/Pages/Teams/Teams.jsx +++ b/src/Pages/Teams/Teams.jsx @@ -67,7 +67,7 @@ const Teams = () => { - +