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 9a1b54d9
authored
10 months ago
by
jaymehta
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
.
1 parent
cc9ec2cf
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
5 deletions
components/detail/ShareWidget.js
components/gift-card/GiftCard.js
components/detail/ShareWidget.js
View file @
9a1b54d
...
@@ -15,7 +15,7 @@ import {
...
@@ -15,7 +15,7 @@ import {
}
from
"react-share"
;
}
from
"react-share"
;
const
ShareWidget
=
()
=>
{
const
ShareWidget
=
()
=>
{
const
[
shareUrl
,
setshareUrl
]
=
useState
(
"asd"
);
const
[
shareUrl
,
setshareUrl
]
=
useState
();
const
[
title
,
settitle
]
=
useState
(
""
);
const
[
title
,
settitle
]
=
useState
(
""
);
const
[
copy
,
setcopy
]
=
useState
({
copied
:
false
});
const
[
copy
,
setcopy
]
=
useState
({
copied
:
false
});
const
router
=
useRouter
();
const
router
=
useRouter
();
...
...
This diff is collapsed.
Click to expand it.
components/gift-card/GiftCard.js
View file @
9a1b54d
...
@@ -9,6 +9,7 @@ import { toast } from "react-toastify";
...
@@ -9,6 +9,7 @@ import { toast } from "react-toastify";
import
{
Loader
}
from
"react-bootstrap-typeahead"
;
import
{
Loader
}
from
"react-bootstrap-typeahead"
;
import
{
finishVendorOtpVerification
}
from
"../../redux/actions/vendorActions"
;
import
{
finishVendorOtpVerification
}
from
"../../redux/actions/vendorActions"
;
import
{
useRouter
}
from
"next/router"
;
import
{
useRouter
}
from
"next/router"
;
import
{
Button
}
from
"react-bootstrap"
;
// import { getCurrentEndUser } from "../../redux/actions/userActions";
// import { getCurrentEndUser } from "../../redux/actions/userActions";
const
validationSchema
=
Yup
.
object
().
shape
({
const
validationSchema
=
Yup
.
object
().
shape
({
...
@@ -22,7 +23,7 @@ const validationSchema = Yup.object().shape({
...
@@ -22,7 +23,7 @@ const validationSchema = Yup.object().shape({
let
formik1
;
let
formik1
;
const
GiftCard
=
()
=>
{
const
GiftCard
=
()
=>
{
const
router
=
useRouter
()
const
router
=
useRouter
()
;
const
dispatch
=
useDispatch
();
const
dispatch
=
useDispatch
();
// useEffect(() => {
// useEffect(() => {
// dispatch(getCurrentEndUser());
// dispatch(getCurrentEndUser());
...
@@ -60,6 +61,19 @@ const GiftCard = () => {
...
@@ -60,6 +61,19 @@ const GiftCard = () => {
<
div
className
=
"container"
>
<
div
className
=
"container"
>
<
div
className
=
"row justify-content-center"
>
<
div
className
=
"row justify-content-center"
>
<
div
className
=
"col-md-10"
>
<
div
className
=
"col-md-10"
>
<
div
>
<
Button
onClick
=
{()
=>
{
if
(
!
session
)
{
toast
.
warning
(
"Please log in to see your gift cards."
);
return
;
}
router
.
push
(
"/user/giftcard"
);
}}
>
See
my
gift
cards
<
/Button
>
<
/div
>
{
!
isResult
&&
(
{
!
isResult
&&
(
<
div
className
=
"row"
>
<
div
className
=
"row"
>
<
div
className
=
"col-md-5"
>
<
div
className
=
"col-md-5"
>
...
@@ -394,9 +408,13 @@ const GiftCard = () => {
...
@@ -394,9 +408,13 @@ const GiftCard = () => {
<
br
/>
Thank
you
.
<
br
/>
Thank
you
.
<
/p
>
<
/p
>
<
div
>
<
div
>
<
button
className
=
"btn btn-primary"
type
=
"button"
onClick
=
{()
=>
{
<
button
router
.
push
(
"/listing"
)
className
=
"btn btn-primary"
}}
>
type
=
"button"
onClick
=
{()
=>
{
router
.
push
(
"/listing"
);
}}
>
Browse
Experiences
Browse
Experiences
<
/button
>
<
/button
>
<
/div
>
<
/div
>
...
...
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