Skip to content

Commit cbd3817

Browse files
authored
Merge pull request #43 from whysosaket/main
Merge Newsletter
2 parents c71cf0c + b92dd4f commit cbd3817

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Diff for: my-app/src/data.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ const navigation = [
22
{ name: "Home", to: "/" },
33
{ name: "Community", to: "/community" },
44
{ name: "Events", to: "/events" },
5-
// { name: "Newsletter", to: "/newsletter" },
5+
{ name: "Newsletter", to: "/newsletter" },
66
{ name: "About us", to: "about-us" },
7-
{ name: "Contact us", to: "/contact-us" },
7+
// { name: "Contact us", to: "/contact-us" },
88
];
99
export { navigation };

Diff for: my-app/src/routes.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ import { BrowserRouter as Router, Routes, Route } from "react-router-dom";
33
import Home from "./pages/Home";
44
import Members from "./pages/Members";
55
import Event from "./pages/Event";
6-
import Contact from "./pages/Contact";
6+
// import Contact from "./pages/Contact";
77
import About from "./pages/About";
88
import Error from "./pages/404";
99
import Alumni from "./pages/Alumni.jsx";
10+
import Newsletter from "./components/Newsletter.jsx";
1011

1112
const AppRouter = () => {
1213
return (
@@ -17,8 +18,9 @@ const AppRouter = () => {
1718
<Route path="/members" exact element={Members} />
1819
<Route path="/alumni" exact element={Alumni} />
1920
<Route path="/about" exact element={About} />
20-
<Route path="/contact" exact element={Contact} />
21+
{/* <Route path="/contact" exact element={Contact} /> */}
2122
<Route path="/events" exact element={Event} />
23+
<Route path="/newsletter" exact element={Newsletter} />
2224
<Route path="" element={Error} />
2325
</Routes>
2426
</Router>

0 commit comments

Comments
 (0)