File tree Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments