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 b7404f9e
authored
2024-06-07 15:23:56 +0530
by
Ravindra Kanojiya
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
responsive changes by chetan in bookings, gift cards, wishlist, and activity det…
…ails, and order listing
1 parent
6223ff28
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
38 additions
and
28 deletions
components/user/MyBookings.js
components/user/MyGiftCard.js
components/user/MyWhishList.js
components/vendor/ActivityDetails.js
components/vendor/OrderListing.js
pages/user/whishlist/index.js → pages/user/wishlist/index.js
components/user/MyBookings.js
View file @
b7404f9
...
...
@@ -47,10 +47,10 @@ const MyBookings = () => {
<
div
className
=
"container"
>
<
div
className
=
"row"
>
<
div
className
=
"col-12 col-lg-12 form-container content-wraaper"
>
<
h2
>
My
Bookings
<
/h2
>
<
h2
className
=
"px-2 px-lg-0"
>
My
Bookings
<
/h2
>
<
div
className
=
"row"
>
{
bookingsData
?.
length
&&
bookingsData
.
map
((
data
,
index
)
=>
(
<
div
className
=
"col-12 col-lg-3"
key
=
{
`1
${
index
}
`
}
>
<
div
className
=
"col-12 col-
sm-12 col-lg-3 col-md-6 px-4 px-
lg-3"
key
=
{
`1
${
index
}
`
}
>
<
div
className
=
"card-booking"
>
<
div
className
=
"card-booking-img"
>
<
span
className
=
"image-container"
>
...
...
@@ -83,7 +83,7 @@ const MyBookings = () => {
<
/div
>
<
div
className
=
"row"
>
{
bookingsData
?.
length
&&
bookingsData
.
map
((
data
,
index
)
=>
(
<
div
className
=
"col-12 col-lg-3"
key
=
{
`2
${
index
}
`
}
>
<
div
className
=
"col-12 col-
sm-12 col-lg-3 col-md-6 px-4 px-
lg-3"
key
=
{
`2
${
index
}
`
}
>
<
div
className
=
"card-booking"
>
<
div
className
=
"card-booking-img"
>
<
span
className
=
"image-container"
>
...
...
@@ -116,7 +116,7 @@ const MyBookings = () => {
<
/div
>
<
div
className
=
"row"
>
{
bookingsData
?.
length
&&
bookingsData
.
map
((
data
,
index
)
=>
(
<
div
className
=
"col-12 col-lg-3"
key
=
{
`3
${
index
}
`
}
>
<
div
className
=
"col-12 col-
sm-12 col-lg-3 col-md-6 px-4 px-
lg-3"
key
=
{
`3
${
index
}
`
}
>
<
div
className
=
"card-booking"
>
<
div
className
=
"card-booking-img"
>
<
span
className
=
"image-container"
>
...
...
components/user/MyGiftCard.js
View file @
b7404f9
...
...
@@ -13,10 +13,10 @@ const MyGiftCard = () => {
<
div
className
=
"container"
>
<
div
className
=
"row"
>
<
div
className
=
"col-12 col-lg-12 form-container content-wraaper"
>
<
h2
>
My
Gift
Card
<
/h2
>
<
h2
className
=
"px-2 px-lg-0"
>
My
Gift
Card
<
/h2
>
<
div
className
=
"row"
>
{
giftCard
?.
length
&&
giftCard
.
map
((
data
,
index
)
=>
(
<
div
className
=
"col-12 col-lg-4"
key
=
{
`1
${
index
}
`
}
>
<
div
className
=
"col-12 col-lg-4
px-4 px-lg-3
"
key
=
{
`1
${
index
}
`
}
>
<
div
className
=
"card-booking"
>
<
div
className
=
"card-booking-img bgGrey"
>
<
span
className
=
"image-container"
>
...
...
components/user/MyWhishList.js
View file @
b7404f9
...
...
@@ -57,54 +57,64 @@ const MyWhishList = () => {
return
(
<
Fragment
>
<
div
className
=
"container"
>
<
div
className
=
"container
pb-5
"
>
<
div
className
=
"row"
>
<
div
className
=
"col-12 col-lg-12 form-container content-wraaper"
>
<
h2
>
My
Bookings
<
/h2
>
<
h2
className
=
"px-2 px-lg-0"
>
My
Bookings
<
/h2
>
<
div
className
=
"listing-items"
>
<
div
className
=
"row"
>
{
whishListData
?.
length
&&
whishListData
.
map
((
data
,
index
)
=>
(
<
div
className
=
"col-12 col-lg-3"
key
=
{
`1
${
index
}
`
}
>
<
div
className
=
"card-booking"
>
<
div
className
=
"card-booking-img"
>
<
div
className
=
"col-12 col-sm-12 col-lg-3 col-md-6 px-4 px-lg-3"
key
=
{
`1
${
index
}
`
}
>
<
div
className
=
"item"
>
<
div
className
=
"browse-experiences-item"
>
<
div
className
=
"img-wrapper"
>
<
span
className
=
"image-container"
>
<
Image
src
=
{
renderImage
(
data
.
image
)}
layout
=
"fill"
className
=
"image
"
/>
<
Image
src
=
{
renderImage
(
data
.
image
)}
layout
=
"fill"
className
=
"image img-fluid
"
/>
<
/span
>
<
p
className
=
"type"
>
{
data
.
type
}
<
/p
>
<
div
className
=
"top-rated"
>
Top
Rated
<
/div
>
<
/div
>
<
div
className
=
"card-booking-content
"
>
<
div
className
=
"d-flex align-items-start justify-content-between
"
>
<
p
className
=
"activity-name"
>
{
data
.
name
}
<
/p
>
<
div
className
=
"d-flex align-items-center
"
>
<
div
className
=
"info
"
>
<
div
className
=
"top-name
"
>
<
div
className
=
"title"
>
{
data
.
name
}
<
/div
>
<
div
className
=
"rating-wishlist
"
>
<
div
className
=
"rating"
>
<
span
className
=
"me-1 pt-1
"
>
{
data
.
rating
}
<
/span
>
<
span
className
=
"number
"
>
{
data
.
rating
}
<
/span
>
<
span
className
=
"image-container"
>
<
Image
src
=
{
renderImage
(
"/images/user/star.svg"
)}
layout
=
"fill"
className
=
"image
"
/>
<
Image
layout
=
"fill"
alt
=
""
className
=
"image img-fluid"
src
=
"/images/icons/star.svg
"
/>
<
/span
>
<
/div
>
<
span
className
=
"image-container"
>
<
Image
src
=
{
renderImage
(
"/images/user/heart.svg"
)}
layout
=
"fill"
className
=
"image"
/>
<
/span
>
<
/div
>
<
/div
>
<
div
className
=
"discription"
>
Lorem
ipsum
dolor
sit
amet
,
consectetur
adipiscing
elit
,
<
a
href
=
""
>
Read
More
<
/a></
div
>
{
/* <p className="price">{data.price} <span>{data.discount}</span></p> */
}
<
p
className
=
"description"
>
Lorem
ipsum
dolor
sit
amet
,
consectetur
adipiscing
elit
,
<
span
>
Read
More
<
/span></
p
>
<
p
className
=
"price"
>
{
data
.
price
}
<
span
>
{
data
.
discount
}
<
/span></
p
>
<
p
className
=
"other"
>
{
data
.
availablity
}
<
/p
>
<
p
className
=
"other"
>
{
data
.
other
}
<
/p
>
<
div
className
=
"price"
>
$
{
data
?.
price
}
<
span
className
=
"off"
>
{
data
.
discount
}
<
/span
>
<
/div
>
<
div
className
=
"detail"
>
<
div
>
{
data
.
availablity
}
<
/div
>
<
div
>
{
data
.
other
}
<
/div
>
<
/div
>
<
div
className
=
"card-booking-footer pt-0"
>
<
Button
id
=
"exploreNow"
aria
-
label
=
"Explore Now"
type
=
"button"
className
=
"btn btn-primary btn-explore"
>
<
div
className
=
"explore-now"
>
<
Button
variant
=
"primary"
>
Explore
Now
<
/Button
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
))}
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/Fragment
>
)
}
...
...
components/vendor/ActivityDetails.js
View file @
b7404f9
...
...
@@ -334,7 +334,7 @@ const ActivityDetails = ({ isUpdate }) => {
setStartDate
(
activityById
?.
data
.
attributes
.
fromDate
);
setEndDate
(
activityById
?.
data
.
attributes
.
toDate
);
setimagesArrayComponent
(
activityById
?.
data
.
attributes
.
imagesComponent
.
map
(
item
=>
item
.
image
.
data
?.
id
));
setdisplayImage
(
activityById
?.
data
.
attributes
.
image
?.
data
.
id
);
setdisplayImage
(
activityById
?.
data
.
attributes
.
image
?.
data
?
.
id
);
setCancellationPolicy
(
activityById
?.
data
.
attributes
.
cancellationPolicy
?.
data
?.
id
);
settermsConditions
(
activityById
?.
data
.
attributes
.
termsConditions
?.
data
?.
id
);
}
...
...
components/vendor/OrderListing.js
View file @
b7404f9
...
...
@@ -172,7 +172,7 @@ const OrderListing = () => {
<
div
className
=
"p-2"
>
Phone
number
:
{
enquiryDetails
[
0
].
attributes
.
end_user
.
data
.
attributes
.
phone
}
<
/div
>
<
div
className
=
"p-2"
>
Email
:
{
enquiryDetails
[
0
].
attributes
.
end_user
.
data
.
attributes
.
email
}
<
/div
>
<
div
className
=
"p-2"
>
Status
:
<
Tag
color
=
{
enquiryDetails
[
0
].
attributes
.
status
==
"pending"
?
"red"
:
"blue
I
"
}
>
{
enquiryDetails
[
0
].
attributes
.
status
.
toUpperCase
()}
<
/Tag
>
Status
:
<
Tag
color
=
{
enquiryDetails
[
0
].
attributes
.
status
==
"pending"
?
"red"
:
"blue"
}
>
{
enquiryDetails
[
0
].
attributes
.
status
.
toUpperCase
()}
<
/Tag
>
<
/div
>
<
Button
onClick
=
{
async
()
=>
{
...
...
pages/user/w
h
ishlist/index.js
→
pages/user/wishlist/index.js
View file @
b7404f9
File moved
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