Commit 09260aab by Ravindra Kanojiya

updated ui

1 parent 3ddd0dc9
...@@ -277,7 +277,7 @@ const ActivityDetails = ({ isUpdate, loadedUser }) => { ...@@ -277,7 +277,7 @@ const ActivityDetails = ({ isUpdate, loadedUser }) => {
}} }}
validationSchema={activityDetailsValidationSchema} validationSchema={activityDetailsValidationSchema}
// enableReinitialize={true} // enableReinitialize={true}
onSubmit={values => {}} onSubmit={values => { }}
> >
{({ values, errors, touched, handleChange, handleBlur, handleSubmit, setFieldValue, resetForm }) => ( {({ values, errors, touched, handleChange, handleBlur, handleSubmit, setFieldValue, resetForm }) => (
<Form <Form
...@@ -529,8 +529,6 @@ const ActivityDetails = ({ isUpdate, loadedUser }) => { ...@@ -529,8 +529,6 @@ const ActivityDetails = ({ isUpdate, loadedUser }) => {
<div className="col-12 col-lg-6"> <div className="col-12 col-lg-6">
<div className="input-group mb-2"> <div className="input-group mb-2">
<label>Gifting to Someone</label> <label>Gifting to Someone</label>
<div className="row">
<div className="col-12 col-lg-12">
<select id="giftingToSomeone" name="giftingToSomeone" value={values.giftingToSomeone} onChange={handleChange} onBlur={handleBlur}> <select id="giftingToSomeone" name="giftingToSomeone" value={values.giftingToSomeone} onChange={handleChange} onBlur={handleBlur}>
{" "} {" "}
Gift someone Gift someone
...@@ -538,21 +536,18 @@ const ActivityDetails = ({ isUpdate, loadedUser }) => { ...@@ -538,21 +536,18 @@ const ActivityDetails = ({ isUpdate, loadedUser }) => {
<option value={true}>Yes</option> <option value={true}>Yes</option>
<option value={false}>No</option> <option value={false}>No</option>
</select> </select>
</div>
{touched.giftingToSomeone && errors.giftingToSomeone && ( {touched.giftingToSomeone && errors.giftingToSomeone && (
<span className="form-error" style={{ color: "red", fontSize: "10px" }}> <span className="form-error" style={{ color: "red", fontSize: "10px" }}>
{errors.giftingToSomeone} {errors.giftingToSomeone}
</span> </span>
)} )}
</div>
</div> </div>
</div> </div>
<div className="col-12 col-lg-6"> <div className="col-12 col-lg-6">
<div className="input-group mb-2"> <div className="input-group mb-2">
<label>Activity Type</label> <label>Activity Type</label>
<div className="row">
<div className="">
<div className="col-12 col-lg-12">
<select id="activityType" name="activityType" onChange={handleChange} onBlur={handleBlur} value={values.activityType}> <select id="activityType" name="activityType" onChange={handleChange} onBlur={handleBlur} value={values.activityType}>
{" "} {" "}
Activity Type Activity Type
...@@ -560,14 +555,13 @@ const ActivityDetails = ({ isUpdate, loadedUser }) => { ...@@ -560,14 +555,13 @@ const ActivityDetails = ({ isUpdate, loadedUser }) => {
<option value={"indoor"}>Indoor</option> <option value={"indoor"}>Indoor</option>
<option value={"outdoor"}>Outdoor</option> <option value={"outdoor"}>Outdoor</option>
</select> </select>
</div>
{touched.activityType && errors.activityType && ( {touched.activityType && errors.activityType && (
<span className="form-error" style={{ color: "red", fontSize: "10px" }}> <span className="form-error" style={{ color: "red", fontSize: "10px" }}>
{errors.activityType} {errors.activityType}
</span> </span>
)} )}
</div>
</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -987,7 +981,7 @@ const ActivityDetails = ({ isUpdate, loadedUser }) => { ...@@ -987,7 +981,7 @@ const ActivityDetails = ({ isUpdate, loadedUser }) => {
<p className="textH">Add display image</p> <p className="textH">Add display image</p>
{/* {console.log(displayImage)} */} {/* {console.log(displayImage)} */}
<UploadImageCustom isUpdate={isUpdate} setImage={setdisplayImage} populatedImages={activityById?.data.attributes.image} /> <UploadImageCustom isUpdate={isUpdate} setImage={setdisplayImage} populatedImages={activityById?.data.attributes.image} />
<hr /> <hr className="mt-5" />
</div> </div>
<div className="row d-flex "> <div className="row d-flex ">
<p className="textH">Add other images</p> <p className="textH">Add other images</p>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!