source: frontend/src/Components/SearchCriterias/SearchCriteriasBar.js@ 0f5aa27

Last change on this file since 0f5aa27 was 07f4e8b, checked in by darsov2 <62809499+darsov2@…>, 10 months ago

prefinal fixes

  • Property mode set to 100644
File size: 787 bytes
Line 
1import React from "react";
2import { Container, Form, Button, Row, Col } from "react-bootstrap";
3import useFormData from "../Hooks/useFormData";
4import SearchCriteriasHotel from "./SearchCriteriasHotel";
5import SearchCriteriasTransport from "./SearchCriteriasTransport";
6import SearchCriteriasRestaurant from "./SearchCriteriasRestaurant";
7
8const SearchCriteriasBar = (props) => {
9
10 const { criterias, type } = props
11
12 return (
13 <>
14 {type === 'hotel' && <SearchCriteriasHotel criterias={criterias}/>}
15 {type === 'transport' && <SearchCriteriasTransport showButton={props.showButton} criterias={criterias}/>}
16 {type === 'restaurant' && <SearchCriteriasRestaurant criterias={criterias}/>}
17 </>
18 )
19}
20
21export default SearchCriteriasBar;
Note: See TracBrowser for help on using the repository browser.