From 8bfbc4eb7200ce71d6e12a8b104d2d0138b47509 Mon Sep 17 00:00:00 2001 From: Rohan Barsagade Date: Sat, 4 Nov 2023 21:43:54 +0530 Subject: [PATCH 1/5] delete env --- .env | 1 - 1 file changed, 1 deletion(-) delete mode 100644 .env diff --git a/.env b/.env deleted file mode 100644 index 25c5370..0000000 --- a/.env +++ /dev/null @@ -1 +0,0 @@ -# REACT_APP_ASSETS_BASEURL= From 1caa965e88a26b5c67f62407d66be18913db760e Mon Sep 17 00:00:00 2001 From: Rohan Barsagade Date: Sat, 4 Nov 2023 21:51:23 +0530 Subject: [PATCH 2/5] remove env from git --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index ec1dd52..cbd646c 100644 --- a/.gitignore +++ b/.gitignore @@ -19,6 +19,8 @@ .env.test.local .env.production.local +.env + npm-debug.log* yarn-debug.log* yarn-error.log* From adf6d5fe77658ce3011e60a30d66cd9245ac679b Mon Sep 17 00:00:00 2001 From: Rohan Barsagade Date: Sat, 4 Nov 2023 21:51:43 +0530 Subject: [PATCH 3/5] remove allumni section temporarily --- src/App.js | 10 +++--- src/components/Navbar/DrawerComp.js | 50 +++++++++++++++-------------- src/components/Navbar/Navbar.js | 45 +++++++++++++------------- 3 files changed, 54 insertions(+), 51 deletions(-) diff --git a/src/App.js b/src/App.js index 90bad6b..724ffa7 100644 --- a/src/App.js +++ b/src/App.js @@ -2,7 +2,7 @@ import "./App.css"; import Navbar from "./components/Navbar/Navbar"; import { BrowserRouter, Routes, Route } from "react-router-dom"; import Gallery from "./pages/Galllery/Gallery"; -import Alumni from "./pages/Alumni/Alumni"; +// import Alumni from "./pages/Alumni/Alumni"; import Home from "./pages/Home/Home"; import Eventpics from "./pages/Galllery/Eventpics"; @@ -11,10 +11,10 @@ function App() { - }> - }> - }> - }> + }> + }> + {/* }> */} + }> ); diff --git a/src/components/Navbar/DrawerComp.js b/src/components/Navbar/DrawerComp.js index 6701e9b..bf1bfa4 100644 --- a/src/components/Navbar/DrawerComp.js +++ b/src/components/Navbar/DrawerComp.js @@ -22,7 +22,7 @@ const useStyles = makeStyles(() => ({ })); function DrawerComponent() { - const pathname = useLocation().pathname; + const pathname = useLocation().pathname; const classes = useStyles(); const [openDrawer, setOpenDrawer] = useState(false); return ( @@ -33,28 +33,30 @@ function DrawerComponent() { onClose={() => setOpenDrawer(false)} > - {pathname!=="/" && - setOpenDrawer(false)} - > - Home - - } - {pathname === "/" && + {pathname !== "/" && ( + + setOpenDrawer(false)} + > + Home + + + )} + {pathname === "/" && ( - setOpenDrawer(false)} - > - - - Home - - - - - } + setOpenDrawer(false)} + > + + + Home + + + + + )} Gallery - + {/* setOpenDrawer(false)} > Alumni - + */} @@ -29,33 +28,35 @@ export default function Navbar() { {isMobile ? ( ) : (
- {pathname!=='/' && } - {pathname==='/' && - - - - } + )} + {pathname === "/" && ( + + + + )} - + */}