source: frontend/src/Components/HotelDetails/ReviewsCarousel.js@ ac19a0c

Last change on this file since ac19a0c was e9b4ba9, checked in by darsov2 <62809499+darsov2@…>, 6 months ago

prototype

  • Property mode set to 100644
File size: 994 bytes
Line 
1import React from "react";
2import Carousel from "react-bootstrap/Carousel";
3import Review from "../BecomeAHost/Review";
4import { useState } from "react";
5import { Container } from "react-bootstrap";
6
7const ReviewsCarousel = () => {
8 document.body.style.backgroundColor = "white";
9
10 const [index, setIndex] = useState(0);
11
12 const handleSelect = (selectedIndex) => {
13 setIndex(selectedIndex);
14 };
15 return (<>
16 <Container
17 className="py-3 px-1 my-4">
18 <Carousel className="w-100" activeIndex={index} onSelect={handleSelect}>
19 <Carousel.Item>
20 <Review></Review>
21 </Carousel.Item>
22 <Carousel.Item>
23 <Review></Review>
24 </Carousel.Item>
25 <Carousel.Item>
26 <Review></Review>
27 </Carousel.Item>
28 </Carousel>
29 </Container>
30 </>)
31}
32
33export default ReviewsCarousel;
Note: See TracBrowser for help on using the repository browser.