Kene-s-Cribs-Website/src/App.js

34 lines
1.3 KiB
JavaScript
Raw Normal View History

import { Component } from "react";
import Footer from "./shared-components/footer-component/Footer";
import Navbar from "./shared-components/navbar-component/Navbar";
import { BrowserRouter, Route } from "react-router-dom";
2021-04-01 01:01:55 +00:00
import HomePage from "./homePage/Homepage";
2021-03-31 18:26:10 +00:00
import ListingsPage from "./listings-page/ListingsPage";
import AgentPage from "./agent-page/AgentPage";
import ListingPage from "./listings-page/single-listing/listing-page";
2021-04-05 22:23:55 +00:00
import Login from "./login-page/Login";
// import Account from "./login-page/account/Account";
2021-03-31 18:26:10 +00:00
// import ContactUs from "./shared-components/Contact-us/Contact-us";
import ContactUs from "./shared-components/contact-us/contact-us";
2021-03-28 15:39:48 +00:00
class App extends Component {
render() {
return (
<div className="App">
<BrowserRouter>
<Navbar></Navbar>
2021-03-31 19:35:29 +00:00
<Route exact path="/" component={HomePage}></Route>
<Route path="/listings" component={ListingsPage}></Route>
<Route path="/agents" component={AgentPage}></Route>
<Route path="/listing-page" component={ListingPage}></Route>
2021-04-05 22:23:55 +00:00
<Route path="/login" component={Login}></Route>
<Route path="/contact-us" component={ContactUs}></Route>
</BrowserRouter>
<Footer></Footer>
</div>
);
}
2021-03-28 15:39:48 +00:00
}
export default App;