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 | |
---|
1 | import React from "react";
|
---|
2 | import { Container, Form, Button, Row, Col } from "react-bootstrap";
|
---|
3 | import useFormData from "../Hooks/useFormData";
|
---|
4 | import SearchCriteriasHotel from "./SearchCriteriasHotel";
|
---|
5 | import SearchCriteriasTransport from "./SearchCriteriasTransport";
|
---|
6 | import SearchCriteriasRestaurant from "./SearchCriteriasRestaurant";
|
---|
7 |
|
---|
8 | const 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 |
|
---|
21 | export default SearchCriteriasBar; |
---|
Note:
See
TracBrowser
for help on using the repository browser.