Commit 9d3f8c00 by jaymehta

.

1 parent 0af2c48d
...@@ -99,37 +99,10 @@ const DetailInfo = ({ activityById }) => { ...@@ -99,37 +99,10 @@ const DetailInfo = ({ activityById }) => {
<span className="number">{calculateRating(activityById.data.attributes.reviews.data)}</span> <span className="number">{calculateRating(activityById.data.attributes.reviews.data)}</span>
<span className="image-container"> <span className="image-container">
<Image layout="fill" alt="" className="image img-fluid" src="/images/icons/star.svg" /> <Image layout="fill" alt="" className="image img-fluid" src="/images/icons/star.svg" />
{calculateRating(activityById.data.attributes.reviews.data)} {/* {calculateRating(activityById.data.attributes.reviews.data)} */}
</span> </span>
</div> </div>
<span className="review">{activityById.data.attributes.reviews.data.length > 0 ? activityById.data.attributes.reviews.data.length : 0} Review(s)</span> <span className="review">{activityById.data.attributes.reviews.data.length > 0 ? activityById.data.attributes.reviews.data.length : 0} Review(s)</span>
{/* <span className="star">
<a href="">
<span className="image-container">
<Image layout="fill" alt="" className="image img-fluid" src="/images/icons/star.svg" />
</span>
</a>
<a href="">
<span className="image-container">
<Image layout="fill" alt="" className="image img-fluid" src="/images/icons/star.svg" />
</span>
</a>
<a href="">
<span className="image-container">
<Image layout="fill" alt="" className="image img-fluid" src="/images/icons/star.svg" />
</span>
</a>
<a href="">
<span className="image-container">
<Image layout="fill" alt="" className="image img-fluid" src="/images/icons/star.svg" />
</span>
</a>
<a href="">
<span className="image-container">
<Image layout="fill" alt="" className="image img-fluid" src="/images/icons/star.svg" />
</span>
</a>
</span> */}
</div> </div>
<div className="mb-2">Per Person</div> <div className="mb-2">Per Person</div>
<div className="price"> <div className="price">
...@@ -153,21 +126,17 @@ const DetailInfo = ({ activityById }) => { ...@@ -153,21 +126,17 @@ const DetailInfo = ({ activityById }) => {
> >
{loading ? <Loader /> : "Enquire Now"} {loading ? <Loader /> : "Enquire Now"}
</Button> </Button>
{activityById.data.attributes.link && (
<Button <Button
disabled={loading} disabled={loading}
// onClick={() => { onClick={() => {
// if (!endUser) { window.open(activityById.data.attributes.link, "_blank", "noopener,noreferrer");
// setloginModal(true); }}
// } else {
// setenquiryModal(true);
// }
// }}
variant="primary" variant="primary"
> >
Book Now Book Now
</Button> </Button>
)}
</div> </div>
<div className="mb-1"> <div className="mb-1">
<Button <Button
...@@ -185,17 +154,6 @@ const DetailInfo = ({ activityById }) => { ...@@ -185,17 +154,6 @@ const DetailInfo = ({ activityById }) => {
<Image layout="fill" className="image img-fluid" src="/images/icons/gift-card-icon.svg" /> <Image layout="fill" className="image img-fluid" src="/images/icons/gift-card-icon.svg" />
</span> </span>
</Button> </Button>
{activityById.data.attributes.link && (
<Button
disabled={loading}
onClick={() => {
window.open(activityById.data.attributes.link, "_blank", "noopener,noreferrer");
}}
variant="primary"
>
Book Now
</Button>
)}
</div> </div>
</div> </div>
</div> </div>
...@@ -221,6 +179,7 @@ const DetailInfo = ({ activityById }) => { ...@@ -221,6 +179,7 @@ const DetailInfo = ({ activityById }) => {
onHide={() => { onHide={() => {
setenquiryModal(false); setenquiryModal(false);
setquantity(); setquantity();
setenquiryModal;
}} }}
> >
<Modal.Header>Send Enquiry</Modal.Header> <Modal.Header>Send Enquiry</Modal.Header>
...@@ -250,9 +209,13 @@ const DetailInfo = ({ activityById }) => { ...@@ -250,9 +209,13 @@ const DetailInfo = ({ activityById }) => {
</div> </div>
<div className="col-6"> <div className="col-6">
<div className="mt-2">Date:</div> <div className="mt-2">Date:</div>
<DatePicker <DatePicker
onChange={e => { onChange={e => {
e.preventDefault();
console.log(e); console.log(e);
// setenquireDate(e)
}} }}
/> />
</div> </div>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!