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 4fb5e42c
authored
2024-06-10 16:29:26 +0530
by
Chetan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
wishlist link added in navbar and no wishlist items condition added
1 parent
1a6ce2ab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
42 deletions
components/layout/Header.js
components/user/MyWhishList.js
components/layout/Header.js
View file @
4fb5e42
...
...
@@ -46,7 +46,7 @@ const Header = () => {
},
[
endUser
]);
return
(
<
header
className
=
{
`header_wrap
${
isSticky
?
"stick"
:
""
}
`
}
>
{
isSticky
&&
<
div
style
=
{{
height
:
76
}}
className
=
"bg-transparent"
><
/div>
}
{
isSticky
&&
<
div
style
=
{{
height
:
76
}}
className
=
"bg-transparent"
><
/div>
}
<
Navbar
expand
=
"lg"
className
=
"bg-body-tertiary"
>
<
Container
fluid
>
<
Navbar
.
Brand
href
=
"/"
>
...
...
@@ -57,6 +57,9 @@ const Header = () => {
<
Navbar
.
Toggle
aria
-
controls
=
"navbarScroll"
/>
<
Navbar
.
Collapse
id
=
"navbarScroll"
>
<
Nav
className
=
" my-2 my-lg-0"
style
=
{{
maxHeight
:
"100px"
}}
navbarScroll
>
<
ActiveLink
href
=
"/user/wishlist"
activeClassName
=
"active"
>
<
a
className
=
"nav-link "
>
Wishlist
<
/a
>
<
/ActiveLink
>
<
ActiveLink
href
=
"/blog"
activeClassName
=
"active"
>
<
a
className
=
"nav-link "
>
Blogs
<
/a
>
<
/ActiveLink
>
...
...
components/user/MyWhishList.js
View file @
4fb5e42
...
...
@@ -15,52 +15,61 @@ const MyWhishList = ({ data }) => {
<
h2
className
=
"px-2 px-lg-0"
>
My
Bookings
<
/h2
>
<
div
className
=
"listing-items"
>
<
div
className
=
"row"
>
{
data
?.
length
&&
data
.
map
((
data
,
index
)
=>
(
<
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
=
{
cleanImage
(
data
?.
attributes
?.
experience
?.
data
?.
attributes
?.
image
?.
data
?.
attributes
)}
layout
=
"fill"
className
=
"image img-fluid"
/>
<
/span
>
<
div
className
=
"top-rated"
>
Top
Rated
<
/div
>
<
/div
>
<
div
className
=
"info"
>
<
div
className
=
"top-name"
>
<
div
className
=
"title"
>
{
data
?.
attributes
?.
experience
?.
data
?.
attributes
?.
name
}
<
/div
>
<
div
className
=
"rating-wishlist"
>
<
div
className
=
"rating"
>
<
span
className
=
"number"
>
{
data
?.
attributes
?.
experience
?.
data
?.
attributes
?.
rating
}
<
/span
>
<
span
className
=
"image-container"
>
<
Image
layout
=
"fill"
alt
=
""
className
=
"image img-fluid"
src
=
"/images/icons/star.svg"
/>
<
/span
>
{
data
?.
length
>
0
?
<>
{
data
.
map
((
data
,
index
)
=>
(
<
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
=
{
cleanImage
(
data
?.
attributes
?.
experience
?.
data
?.
attributes
?.
image
?.
data
?.
attributes
)}
layout
=
"fill"
className
=
"image img-fluid"
/>
<
/span
>
<
div
className
=
"top-rated"
>
Top
Rated
<
/div
>
<
/div
>
<
div
className
=
"info"
>
<
div
className
=
"top-name"
>
<
div
className
=
"title"
>
{
data
?.
attributes
?.
experience
?.
data
?.
attributes
?.
name
}
<
/div
>
<
div
className
=
"rating-wishlist"
>
<
div
className
=
"rating"
>
<
span
className
=
"number"
>
{
data
?.
attributes
?.
experience
?.
data
?.
attributes
?.
rating
}
<
/span
>
<
span
className
=
"image-container"
>
<
Image
layout
=
"fill"
alt
=
""
className
=
"image img-fluid"
src
=
"/images/icons/star.svg"
/>
<
/span
>
<
/div
>
<
WishlistComponent
activityId
=
{
data
?.
attributes
?.
experience
?.
data
?.
id
}
userId
=
{
data
?.
attributes
?.
endUser
?.
data
?.
id
}
/
>
<
/div
>
<
/div
>
<
div
className
=
"discription"
><
p
className
=
"text-trunc-2"
>
{
data
?.
attributes
?.
experience
?.
data
?.
attributes
?.
description
}
<
/p></
div
>
<
div
className
=
"price"
>
$
{
data
?.
attributes
?.
experience
?.
data
?.
attributes
?.
pricePerPerson
}
<
span
className
=
"off"
>
{
}
%
OFF
<
/span
>
<
/div
>
<
div
className
=
"detail"
>
<
div
className
=
""
>
For
1
Night
<
/div
>
<
div
className
=
""
>
Includes
taxes
&
Fees
<
/div
>
<
/div
>
<
div
className
=
"explore-now"
>
<
Button
variant
=
"primary"
onClick
=
{()
=>
{
router
.
push
(
`/activities/
${
data
?.
attributes
?.
experience
?.
data
?.
id
}
`);
}}
>
Explore Now
</Button>
</div>
<
WishlistComponent
activityId
=
{
data
?.
attributes
?.
experience
?.
data
?.
id
}
userId
=
{
data
?.
attributes
?.
endUser
?.
data
?.
id
}
/
>
</div>
</div>
<
div
className
=
"discription"
><
p
className
=
"text-trunc-2"
>
{
data
?.
attributes
?.
experience
?.
data
?.
attributes
?.
description
}
<
/p></
div
>
<
div
className
=
"price"
>
$
{
data
?.
attributes
?.
experience
?.
data
?.
attributes
?.
pricePerPerson
}
<
span
className
=
"off"
>
{}
%
OFF
<
/span
>
<
/div
>
<
div
className
=
"detail"
>
<
div
className
=
""
>
For
1
Night
<
/div
>
<
div
className
=
""
>
Includes
taxes
&
Fees
<
/div
>
<
/div
>
<
div
className
=
"explore-now"
>
<
Button
variant
=
"primary"
onClick
=
{()
=>
{
router
.
push
(
`/activities/
${
data
?.
attributes
?.
experience
?.
data
?.
id
}
`);
}}
>
Explore Now
</Button>
</div>
</div>
</div>
</div>
</div>
))}
))}
</>
:
<>
<p>No Item Found</p>
</>
}
</div>
</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