Commit f85792b0 by Jyotsna

country code added in activity details

1 parent ca21c454
...@@ -36,6 +36,7 @@ const ActivityDetails = () => { ...@@ -36,6 +36,7 @@ const ActivityDetails = () => {
linkOfBooking: Yup.string().required("Link of Booking is Required"), linkOfBooking: Yup.string().required("Link of Booking is Required"),
activityImages: Yup.array(), activityImages: Yup.array(),
contactPersonForBooking: Yup.string(), contactPersonForBooking: Yup.string(),
countryCode: Yup.string(),
contactNumberForBooking: Yup.string(), contactNumberForBooking: Yup.string(),
cancellationPolicyFile: Yup.string(), cancellationPolicyFile: Yup.string(),
termsConditionsFile: Yup.string(), termsConditionsFile: Yup.string(),
...@@ -75,6 +76,7 @@ const ActivityDetails = () => { ...@@ -75,6 +76,7 @@ const ActivityDetails = () => {
linkOfBooking: "", linkOfBooking: "",
activityImages: [], activityImages: [],
contactPersonForBooking: "", contactPersonForBooking: "",
countryCode: "",
contactNumberForBooking: "", contactNumberForBooking: "",
cancellationPolicyFile: "", cancellationPolicyFile: "",
termsConditionsFile: "", termsConditionsFile: "",
...@@ -123,6 +125,7 @@ const ActivityDetails = () => { ...@@ -123,6 +125,7 @@ const ActivityDetails = () => {
linkOfBooking: "", linkOfBooking: "",
activityImages: [], activityImages: [],
contactPersonForBooking: "", contactPersonForBooking: "",
countryCode: "",
contactNumberForBooking: "", contactNumberForBooking: "",
cancellationPolicyFile: "", cancellationPolicyFile: "",
termsConditionsFile: "", termsConditionsFile: "",
...@@ -519,6 +522,17 @@ const ActivityDetails = () => { ...@@ -519,6 +522,17 @@ const ActivityDetails = () => {
<div className="col-12 col-lg-6"> <div className="col-12 col-lg-6">
<div className="input-group"> <div className="input-group">
<label>Contact Person Number</label> <label>Contact Person Number</label>
<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 <input
type="text" type="text"
name={`activities.${index}.contactNumberForBooking`} name={`activities.${index}.contactNumberForBooking`}
...@@ -526,6 +540,7 @@ const ActivityDetails = () => { ...@@ -526,6 +540,7 @@ const ActivityDetails = () => {
onBlur={handleBlur} onBlur={handleBlur}
value={values.activities[index].contactNumberForBooking} value={values.activities[index].contactNumberForBooking}
/> />
</div>
<ErrorMessage name={`activities.${index}.contactNumberForBooking`} component="div" className="form-error" /> <ErrorMessage name={`activities.${index}.contactNumberForBooking`} component="div" className="form-error" />
</div> </div>
</div> </div>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!