-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathRouterPages.jsx
More file actions
34 lines (31 loc) · 1.14 KB
/
RouterPages.jsx
File metadata and controls
34 lines (31 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import React from 'react';
import { BrowserRouter as Router, Switch, Route } from 'react-router-dom';
import Footer from '../containers/Home/FooterSection';
import Navbar from '../components/navbar/NavBar';
// the pages
import AboutUsPage from '../pages/AboutUs.jsx';
import Home from '../pages/Home';
import MissingPeople from '../pages/MissingPeople';
import ContactUs from '../pages/Contactus';
import PostMissingPerson from '../pages/PostMissingPerson';
import MissingPerson from '../pages/MissedPerson';
import ScrollToTop from '../components/ScrollToTop/ScrollToTop'
const RouterPages = () => {
return (
<Router>
<ScrollToTop/>
<Navbar />
<Switch>
<Route path="/" exact component={Home} />
<Route path="/missing_people" exact component={MissingPeople} />
<Route path="/missing_people_details/id:" component={MissingPerson} />
<Route path="/add_post" exact component={PostMissingPerson} />
<Route path="/about_us" component={AboutUsPage} />
<Route path="/contact_us" exact component={ContactUs} />
</Switch>
<Footer />
</Router>
);
};
export default RouterPages;
//