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 2fb6bccd
authored
2024-05-10 18:18:47 +0530
by
jaymehta
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
.
1 parent
eeb7fcd7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
components/detail/DetailInfo.js
components/gift-card/GiftCard.js
components/detail/DetailInfo.js
View file @
2fb6bcc
...
...
@@ -11,8 +11,10 @@ import { useDispatch, useSelector } from "react-redux";
import
{
toast
}
from
"react-toastify"
;
import
{
getCurrentEndUser
}
from
"../../redux/actions/userActions.js"
;
import
{
Loader
}
from
"react-bootstrap-typeahead"
;
import
{
useRouter
}
from
"next/router.js"
;
const
DetailInfo
=
({
activityById
})
=>
{
const
router
=
useRouter
()
const
dispatch
=
useDispatch
();
useEffect
(()
=>
{
dispatch
(
getCurrentEndUser
());
...
...
@@ -125,8 +127,10 @@ const DetailInfo = ({ activityById }) => {
>
{
loading
?
<
Loader
/>
:
"Enquire Now"
}
<
/Button
>
<
Button
variant
=
"secondary"
>
Gift
Now
{
" "
}
<
Button
onClick
=
{()
=>
{
router
.
push
(
"/gift-card"
)
}}
variant
=
"secondary"
>
Gift
Now
<
span
className
=
"image-container btn-gift"
>
<
Image
layout
=
"fill"
className
=
"image img-fluid"
src
=
"/images/icons/gift-card-icon.svg"
/>
<
/span
>
...
...
components/gift-card/GiftCard.js
View file @
2fb6bcc
This diff is collapsed.
Click to expand it.
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