Skip to content

Commit 33d35fd

Browse files
committed
fix UI
1 parent ccd3e30 commit 33d35fd

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

src/component/Body/Rooms/Rooms.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -47,18 +47,20 @@ const Rooms = (props) => {
4747
if (listRooms) {
4848
roomsRender = (
4949
<React.Fragment>
50-
{listRooms.rooms.map((room) => {
51-
return (
52-
<Room
53-
key={room._id}
54-
roomName={room.name}
55-
roomPrice={room.price}
56-
roomDescription={room.description}
57-
imgSource={room.imgSource}
58-
imgAlt={room.imgAlt}
59-
/>
60-
);
61-
})}
50+
<Slider {...settings}>
51+
{listRooms.rooms.map((room) => {
52+
return (
53+
<Room
54+
key={room._id}
55+
roomName={room.name}
56+
roomPrice={room.price}
57+
roomDescription={room.description}
58+
imgSource={room.imgSource}
59+
imgAlt={room.imgAlt}
60+
/>
61+
);
62+
})}
63+
</Slider>
6264
</React.Fragment>
6365
);
6466
}
@@ -69,9 +71,7 @@ const Rooms = (props) => {
6971
<h5 className="section-head">
7072
<span className="heading">the best offers with rooms</span>
7173
</h5>
72-
<div className="rooms-grid">
73-
<Slider {...settings}>{roomsRender}</Slider>
74-
</div>
74+
<div className="rooms-grid">{roomsRender}</div>
7575
</div>
7676
</section>
7777
);

0 commit comments

Comments
 (0)