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 09260aab
authored
2024-07-10 20:54:45 +0530
by
Ravindra Kanojiya
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
updated ui
1 parent
3ddd0dc9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
38 deletions
components/vendor/ActivityDetails.js
components/vendor/ActivityDetails.js
View file @
09260aa
...
...
@@ -277,7 +277,7 @@ const ActivityDetails = ({ isUpdate, loadedUser }) => {
}}
validationSchema
=
{
activityDetailsValidationSchema
}
// enableReinitialize={true}
onSubmit
=
{
values
=>
{}}
onSubmit
=
{
values
=>
{
}}
>
{({
values
,
errors
,
touched
,
handleChange
,
handleBlur
,
handleSubmit
,
setFieldValue
,
resetForm
})
=>
(
<
Form
...
...
@@ -475,8 +475,8 @@ const ActivityDetails = ({ isUpdate, loadedUser }) => {
options
=
{
pincodeData
&&
pincodeData
.
length
>
0
?
pincodeData
.
map
(
item
=>
{
return
{
name
:
item
.
attributes
.
name
,
id
:
item
.
id
};
})
return
{
name
:
item
.
attributes
.
name
,
id
:
item
.
id
};
})
:
[{}]
}
placeholder
=
"Choose a pincode"
...
...
@@ -529,45 +529,39 @@ const ActivityDetails = ({ isUpdate, loadedUser }) => {
<
div
className
=
"col-12 col-lg-6"
>
<
div
className
=
"input-group mb-2"
>
<
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
}
>
{
" "
}
Gift
someone
<
option
value
=
""
>
Select
<
/option
>
<
option
value
=
{
true
}
>
Yes
<
/option
>
<
option
value
=
{
false
}
>
No
<
/option
>
<
/select
>
<
/div
>
{
touched
.
giftingToSomeone
&&
errors
.
giftingToSomeone
&&
(
<
span
className
=
"form-error"
style
=
{{
color
:
"red"
,
fontSize
:
"10px"
}}
>
{
errors
.
giftingToSomeone
}
<
/span
>
)}
<
/div
>
<
select
id
=
"giftingToSomeone"
name
=
"giftingToSomeone"
value
=
{
values
.
giftingToSomeone
}
onChange
=
{
handleChange
}
onBlur
=
{
handleBlur
}
>
{
" "
}
Gift
someone
<
option
value
=
""
>
Select
<
/option
>
<
option
value
=
{
true
}
>
Yes
<
/option
>
<
option
value
=
{
false
}
>
No
<
/option
>
<
/select
>
{
touched
.
giftingToSomeone
&&
errors
.
giftingToSomeone
&&
(
<
span
className
=
"form-error"
style
=
{{
color
:
"red"
,
fontSize
:
"10px"
}}
>
{
errors
.
giftingToSomeone
}
<
/span
>
)}
<
/div
>
<
/div
>
<
div
className
=
"col-12 col-lg-6"
>
<
div
className
=
"input-group mb-2"
>
<
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
}
>
{
" "
}
Activity
Type
<
option
value
=
""
>
Select
<
/option
>
<
option
value
=
{
"indoor"
}
>
Indoor
<
/option
>
<
option
value
=
{
"outdoor"
}
>
Outdoor
<
/option
>
<
/select
>
<
/div
>
{
touched
.
activityType
&&
errors
.
activityType
&&
(
<
span
className
=
"form-error"
style
=
{{
color
:
"red"
,
fontSize
:
"10px"
}}
>
{
errors
.
activityType
}
<
/span
>
)}
<
/div
>
<
/div
>
<
select
id
=
"activityType"
name
=
"activityType"
onChange
=
{
handleChange
}
onBlur
=
{
handleBlur
}
value
=
{
values
.
activityType
}
>
{
" "
}
Activity
Type
<
option
value
=
""
>
Select
<
/option
>
<
option
value
=
{
"indoor"
}
>
Indoor
<
/option
>
<
option
value
=
{
"outdoor"
}
>
Outdoor
<
/option
>
<
/select
>
{
touched
.
activityType
&&
errors
.
activityType
&&
(
<
span
className
=
"form-error"
style
=
{{
color
:
"red"
,
fontSize
:
"10px"
}}
>
{
errors
.
activityType
}
<
/span
>
)}
<
/div
>
<
/div
>
<
/div
>
...
...
@@ -987,7 +981,7 @@ const ActivityDetails = ({ isUpdate, loadedUser }) => {
<
p
className
=
"textH"
>
Add
display
image
<
/p
>
{
/* {console.log(displayImage)} */
}
<
UploadImageCustom
isUpdate
=
{
isUpdate
}
setImage
=
{
setdisplayImage
}
populatedImages
=
{
activityById
?.
data
.
attributes
.
image
}
/
>
<
hr
/>
<
hr
className
=
"mt-5"
/>
<
/div
>
<
div
className
=
"row d-flex "
>
<
p
className
=
"textH"
>
Add
other
images
<
/p
>
...
...
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