File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change 1- import React , { useState } from "react" ;
1+ import React from "react" ;
22import { BrowserRouter as Router , Routes , Route } from "react-router-dom" ;
33import "./App.css" ;
44import HomePage from "./components/HomePage" ;
55import PropertyDetails from "./components/PropertyDetails" ;
6- import ContactUs from "./components/ContactUs" ;
7- import UserProfile from "./components/UserProfile" ;
8- import Login from "./components/Login" ;
96
107const App = ( ) => {
11- const [ user , setUser ] = useState ( null ) ;
128
139 return (
1410 < div className = "App" >
1511 < Router >
1612 < Routes >
17- < Route path = "/" element = { < HomePage user = { user } setUser = { setUser } /> } />
13+ < Route path = "/" element = { < HomePage /> } />
1814 < Route path = "/property-details/:id" element = { < PropertyDetails /> } />
19- < Route path = "/contact-us" element = { < ContactUs /> } />
20- < Route path = "/user-profile" element = { < UserProfile user = { user } /> } />
21- < Route path = "/login" element = { < Login setUser = { setUser } /> } />
2215 </ Routes >
2316 </ Router >
2417 </ div >
You can’t perform that action at this time.
0 commit comments