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 f85792b0
authored
2024-03-19 19:13:09 +0530
by
Jyotsna
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
country code added in activity details
1 parent
ca21c454
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
7 deletions
components/vendor/ActivityDetails.js
components/vendor/ActivityDetails.js
View file @
f85792b
...
...
@@ -36,6 +36,7 @@ const ActivityDetails = () => {
linkOfBooking
:
Yup
.
string
().
required
(
"Link of Booking is Required"
),
activityImages
:
Yup
.
array
(),
contactPersonForBooking
:
Yup
.
string
(),
countryCode
:
Yup
.
string
(),
contactNumberForBooking
:
Yup
.
string
(),
cancellationPolicyFile
:
Yup
.
string
(),
termsConditionsFile
:
Yup
.
string
(),
...
...
@@ -75,6 +76,7 @@ const ActivityDetails = () => {
linkOfBooking
:
""
,
activityImages
:
[],
contactPersonForBooking
:
""
,
countryCode
:
""
,
contactNumberForBooking
:
""
,
cancellationPolicyFile
:
""
,
termsConditionsFile
:
""
,
...
...
@@ -123,6 +125,7 @@ const ActivityDetails = () => {
linkOfBooking
:
""
,
activityImages
:
[],
contactPersonForBooking
:
""
,
countryCode
:
""
,
contactNumberForBooking
:
""
,
cancellationPolicyFile
:
""
,
termsConditionsFile
:
""
,
...
...
@@ -519,13 +522,25 @@ const ActivityDetails = () => {
<
div
className
=
"col-12 col-lg-6"
>
<
div
className
=
"input-group"
>
<
label
>
Contact
Person
Number
<
/label
>
<
input
type
=
"text"
name
=
{
`activities.
${
index
}
.contactNumberForBooking`
}
onChange
=
{
handleChange
}
onBlur
=
{
handleBlur
}
value
=
{
values
.
activities
[
index
].
contactNumberForBooking
}
/
>
<
div
className
=
"contact-number"
>
<
select
id
=
{
`activities.
${
index
}
.countryCode`
}
name
=
{
`activities.
${
index
}
.countryCode`
}
onChange
=
{
handleChange
}
onBlur
=
{
handleBlur
}
style
=
{{
width
:
"80px"
}}
>
<
option
value
=
"+91"
>+
91
<
/option
>
<
option
value
=
"+44"
>+
44
<
/option
>
<
/select
>
<
input
type
=
"text"
name
=
{
`activities.
${
index
}
.contactNumberForBooking`
}
onChange
=
{
handleChange
}
onBlur
=
{
handleBlur
}
value
=
{
values
.
activities
[
index
].
contactNumberForBooking
}
/
>
<
/div
>
<
ErrorMessage
name
=
{
`activities.
${
index
}
.contactNumberForBooking`
}
component
=
"div"
className
=
"form-error"
/>
<
/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