Last change
on this file since ac19a0c was e9b4ba9, checked in by darsov2 <62809499+darsov2@…>, 9 months ago |
prototype
|
-
Property mode
set to
100644
|
File size:
994 bytes
|
Rev | Line | |
---|
[e9b4ba9] | 1 | import React from "react";
|
---|
| 2 | import Carousel from "react-bootstrap/Carousel";
|
---|
| 3 | import Review from "../BecomeAHost/Review";
|
---|
| 4 | import { useState } from "react";
|
---|
| 5 | import { Container } from "react-bootstrap";
|
---|
| 6 |
|
---|
| 7 | const 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 |
|
---|
| 33 | export default ReviewsCarousel; |
---|
Note:
See
TracBrowser
for help on using the repository browser.