Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
jin-co committed Sep 20, 2023
1 parent 9dc48d1 commit 6b9f776
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion React/test-housing/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const App = () => {
<Route exact path='/forgot-password' element={<ForgotPassword />} />
<Route exact path='/create-listing' element={<CreateListing />} />
<Route exact path='/edit-listing/:listing-id' element={<EditListing />} />
<Route exact path='/category/:categoryName/:listing-id' element={<Listing />} />
<Route exact path='/category/:type/:listing-id' element={<Listing />} />
<Route exact path='/contact/:landlord-id' element={<Contact />} />
</Routes>
<Nav />
Expand Down
5 changes: 4 additions & 1 deletion React/test-housing/src/components/ListingItem.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import React from 'react'
import React, { useEffect } from 'react'
import { Link } from 'react-router-dom'
import bedIcon from '../assets/svg/bedIcon.svg'
import bathtubIcon from '../assets/svg/bathtubIcon.svg'
import { ReactComponent as EditIcon } from '../assets/svg/editIcon.svg'

export const ListingItem = ({listing, id}) => {
useEffect(() => {
console.log('listing', listing)
}, [])
return (
<li className="categoryListing">
<Link
Expand Down

0 comments on commit 6b9f776

Please sign in to comment.