Commit 9d3f8c00 by jaymehta

.

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