Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
jin-co committed Jan 22, 2024
1 parent 6d9ecb8 commit a1dfb8a
Show file tree
Hide file tree
Showing 4 changed files with 903 additions and 1 deletion.
39 changes: 39 additions & 0 deletions React/test-housing/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions React/test-housing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"firebase": "^10.7.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.21.3",
"react-scripts": "5.0.1",
"web-vitals": "^2.1.4"
},
Expand Down
32 changes: 31 additions & 1 deletion React/test-housing/src/App.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,37 @@
import React from 'react'
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom'
import { Explore } from './pages/Explore'
import { Category } from './pages/Category'
import { CreateListing } from './pages/CreateListing'
import { EditListing } from './pages/EditListing'
import { ForgotPassword } from './pages/ForgotPassword'
import { Listing } from './pages/Listing'
import { Offers } from './pages/Offers'
import { Profile } from './pages/Profile'
import { SignIn } from './pages/SignIn'
import { SignUp } from './pages/SignUp'
import { Contact } from './pages/Contact'
import { Navbar } from './components/Navbar'

export const App = () => {
return (
<div>App</div>
<>
<Router>
<Routes>
<Route exact path='/' element={<Explore />} />
<Route exact path='/category' element={<Category />} />
<Route exact path='/createListing' element={<CreateListing />} />
<Route exact path='/editListing' element={<EditListing />} />
<Route exact path='/forgotPassword' element={<ForgotPassword />} />
<Route exact path='/listing' element={<Listing />} />
<Route exact path='/offers' element={<Offers />} />
<Route exact path='/profile' element={<Profile />} />
<Route exact path='/signIn' element={<SignIn />} />
<Route exact path='/signUp' element={<SignUp />} />
<Route exact path='/contact' element={<Contact />} />
</Routes>
<Navbar />
</Router>
</>
)
}
Loading

0 comments on commit a1dfb8a

Please sign in to comment.