Changeset 07f4e8b for frontend/src/Pages/RestaurantDetailsPage.js
- Timestamp:
- 01/24/24 17:42:28 (8 months ago)
- Branches:
- master
- Children:
- 0f5aa27
- Parents:
- 5528b99
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
frontend/src/Pages/RestaurantDetailsPage.js
r5528b99 r07f4e8b 133 133 <Row> 134 134 <Carousel activeIndex={index} onSelect={handleSelect}> 135 <Carousel.Item> 135 {data.images.map((image) => { 136 let link = image.url; 137 if (image.url.includes('Desktop')) { 138 link = 'http://localhost:8080/download?fileName=' + encodeURIComponent(image.url); 139 } 140 return ( 141 <Carousel.Item> 142 <img 143 className="d-block w-100 h-400 rounded-5" 144 src={link} 145 alt="First slide" 146 style={{ height: "50vh" }} 147 /> 148 </Carousel.Item> 149 ) 150 })} 151 {data.images.length == 0 && <Carousel.Item> 136 152 <img 137 153 className="d-block w-100 h-400 rounded-5" … … 140 156 style={{height: "50vh"}} 141 157 /> 142 </Carousel.Item> 143 <Carousel.Item> 144 <img 145 className="d-block w-100 rounded-5" 146 src="https://emagazin.mk/wp-content/uploads/2022/03/Karos_Photography-7871.jpg" 147 alt="Second slide" 148 style={{height: "50vh"}} 149 /> 150 </Carousel.Item> 151 <Carousel.Item> 152 <img 153 className="d-block w-100 rounded-5" 154 src="https://lh5.googleusercontent.com/p/AF1QipMQAwahuuJCJ2rDUYNrhnwiX1070adTsM6LmzV5=w480-h300-k-n" 155 alt="Third slide" 156 style={{height: "50vh"}} 157 /> 158 </Carousel.Item> 158 </Carousel.Item>} 159 159 </Carousel> 160 160 </Row> … … 169 169 <Col className="col-md-4"><ReviewsCarousel reviews={data.reviews}></ReviewsCarousel></Col> 170 170 </Row> 171 <Row className="mb-3"><MenuCarousel menu={data.menus}></MenuCarousel></Row>171 <Row className="mb-3"><MenuCarousel images={data.menuImages} menu={data.menus}></MenuCarousel></Row> 172 172 <Row><TablesTable params={formData} data={data.tables}></TablesTable></Row> 173 173 <Row><ContactBar></ContactBar></Row>
Note:
See TracChangeset
for help on using the changeset viewer.