-
Notifications
You must be signed in to change notification settings - Fork 0
/
ListingDisplay.js
104 lines (100 loc) · 4.84 KB
/
ListingDisplay.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
import React,{useState,useEffect} from 'react';
import {Link} from 'react-router-dom';
import './Listing.css';
const Listing = (props) => {
const renderList = ({displaydata}) => {
if(displaydata){
return displaydata.map((item) => {
return(
<div className="item" key={item._id}>
{/* Title part */}
<div className="row">
{/* img and restaurant part */}
<div className="col-md-6">
<img className="image" src={item.thumb}/>
</div>
<div className="col-md-6">
<div className="hotel_name">
<Link className="hotel_name" to={`/restaurantdetails/${item._id}`}>{item.name}</Link>
</div>
<div className="city_name">
{item.cityname}
</div>
<div className="address-text">
{item.address}
</div>
<div className="address-text">
{item.locality}
</div>
<div className="icons">
<span className="icon glyphicon glyphicon-facetime-video"></span>
<span> --- </span>
<span>VideoGraphy Allowed</span>
</div>
<div className="icons">
<a href="https://api.whatsapp.com/send/?phone=917397237457&text&app_absent=0" className=" icon glyphicon glyphicon-send"></a>
<span> --- </span>
<span>WhatsApp Chat Support</span>
</div>
<div className="icons">
<span className="icon glyphicon glyphicon-star"></span>
<span className="icon glyphicon glyphicon-star"></span>
<span className="icon glyphicon glyphicon-star"></span>
<span className="icon glyphicon glyphicon-star-empty"></span>
<span> --- </span>
<span>Stars</span>
</div>
</div>
</div>
{/* price and cuisine etc part */}
<div className="row">
<div className="col-md-3">
<div className="CUISINES-COST-FOR-TWO">
Cost Per Two
</div>
<div className="CUISINES-COST-FOR-TWO">
Cuisine
</div>
<div className="CUISINES-COST-FOR-TWO">
Contact Us
</div>
</div>
<div className="col-md-5">
<div className="cuisine_out">
₹ {item.cost} ||
<span><a className="cuisine_out" href="https://www.xe.com/currencyconverter/">Convert Your Rates</a></span>
</div>
<div className="cuisine_out">
{item.Cuisine[0].name} | {item.Cuisine[1].name}
</div>
<div className="cuisine_out">
<span className="icon glyphicon glyphicon-phone"></span>
<span> ---- </span>
{item.contact_number}
</div>
</div>
</div>
</div>
)
})
}else{
return(
<div>
<center className="loadingLx">
<h3>LOADINGG......</h3>
</center>
</div>
)
}
}
return(
<div>
<div className="row">
<div className="col-md-12">
{renderList(props)}
</div>
</div>
</div>
)
}
export default Listing;