Changeset 5528b99 for frontend/src/Pages/SearchPage.js
- Timestamp:
- 01/16/24 16:34:03 (9 months ago)
- Branches:
- master
- Children:
- 07f4e8b
- Parents:
- e6c2521
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
frontend/src/Pages/SearchPage.js
re6c2521 r5528b99 11 11 import BecomeAHost from "../Components/BecomeAHost/BecomeAHost" 12 12 import HotelLisitng from "../Components/Listings/HotelListing" 13 import SearchCriterias Hotel from "../Components/SearchCriterias/SearchCriteriasHotel";13 import SearchCriterias from "../Components/SearchCriterias/SearchCriteriasBar"; 14 14 import SortButton from "../Components/Listings/SortButton"; 15 15 import FilterButton from "../Components/Listings/FilterButton"; … … 17 17 import useGet from "../Components/Hooks/useGet"; 18 18 import { useParams } from "react-router-dom"; 19 <<<<<<< HEAD 19 20 import SearchCriteriasBar from "../Components/SearchCriterias/SearchCriteriasBar"; 20 21 import RestaurantDetailsPage from "./RestaurantDetailsPage"; 21 22 import RestaurantListing from "../Components/Listings/RestaurantListing"; 23 ======= 24 >>>>>>> parent of ac19a0c (authContext impl, admin panel impl, search bar fixes, reservations listings impl) 22 25 23 26 … … 39 42 } 40 43 44 <<<<<<< HEAD 41 45 let link = props.type === "transport" ? `/transport/search?from=${params.from}&to=${params.to}&date=${params.date}&numPassengers=${params.numPassengers}` : props.type === "hotel" ? `/hotel/search?hotelLocation=${params.hotelLocation}&dateFrom=${params.dateFrom}&dateTo=${params.dateTo}&numBeds=${params.numBeds}` : `/restaurant/search?restaurantLocation=${params.restaurantLocation}&date=${params.date}&hourFrom=${params.hourFrom}&hourTo=${params.hourTo}&numPeople=${params.numPeople}` 46 ======= 47 let link = props.type === "transport" ? `/transport/search?from=${params.from}&to=${params.to}&date=${params.date}` : props.type === "hotel" ? `/hotel/search?hotelLocation=${params.hotelLocation}&dateFrom=${params.dateFrom}&dateTo=${params.dateTo}&numBeds=${params.numBeds}` : "" 48 >>>>>>> parent of ac19a0c (authContext impl, admin panel impl, search bar fixes, reservations listings impl) 42 49 console.log(link) 43 50 console.log(params.date) … … 47 54 <> 48 55 <Navigation></Navigation> 49 <SearchCriterias Bar type={props.type} criterias={useParams()}></SearchCriteriasBar>56 <SearchCriterias criterias={useParams()}></SearchCriterias> 50 57 <Container className="d-flex justify-content-end gx-5" style={{maxWidth: "60%"}}> 51 58 <Row>
Note:
See TracChangeset
for help on using the changeset viewer.