Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Jay Mehta
/
zango-frontend
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Registry
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 9d3f8c00
authored
2024-06-28 14:06:04 +0530
by
jaymehta
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
.
1 parent
0af2c48d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
54 deletions
components/detail/DetailInfo.js
components/detail/DetailInfo.js
View file @
9d3f8c0
...
@@ -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
>
<
Button
{
activityById
.
data
.
attributes
.
link
&&
(
disabled
=
{
loading
}
<
Button
// onClick={() => {
disabled
=
{
loading
}
// if (!endUser) {
onClick
=
{()
=>
{
// setloginModal(true);
window
.
open
(
activityById
.
data
.
attributes
.
link
,
"_blank"
,
"noopener,noreferrer"
);
// } else {
}}
// setenquiryModal(true);
variant
=
"primary"
// }
>
// }}
Book
Now
variant
=
"primary"
<
/Button
>
>
)}
Book
Now
<
/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
>
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment