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 e5e68d85
authored
10 months ago
by
Ravindra Kanojiya
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
activity empty emages
1 parent
b1f99aa4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
10 deletions
components/admin/ActivityDetailGallaryModal.js
components/admin/ActivityDetailGallaryModal.js
View file @
e5e68d8
import
{
Modal
}
from
"antd"
import
{
Empty
,
Modal
}
from
"antd"
import
Image
from
"next/image"
import
Image
from
"next/image"
import
{
cleanImage
}
from
'../../services/imageHandling.js'
import
{
cleanImage
}
from
'../../services/imageHandling.js'
const
ActivityDetailGallaryModal
=
({
activityDetailInfo
})
=>
{
const
ActivityDetailGallaryModal
=
({
activityDetailInfo
})
=>
{
return
(
return
(
<
div
className
=
"p-4"
>
<>
<
div
className
=
"row"
>
{
activityDetailInfo
[
0
].
attributes
.
imagesComponent
.
map
((
data
,
index
)
=>
(
{
activityDetailInfo
[
0
].
attributes
.
imagesComponent
.
length
>
0
?
<
div
className
=
"col-4"
key
=
{
index
}
>
<
Image
className
=
"img-fluid"
height
=
{
400
}
width
=
{
400
}
alt
=
""
src
=
{
cleanImage
(
data
.
image
.
data
.
attributes
)}
/
>
<
div
className
=
"p-4"
>
<
div
className
=
"row"
>
{
activityDetailInfo
[
0
].
attributes
.
imagesComponent
.
map
((
data
,
index
)
=>
(
<
div
className
=
"col-4"
key
=
{
index
}
>
<
Image
className
=
"img-fluid"
height
=
{
400
}
width
=
{
400
}
alt
=
""
src
=
{
cleanImage
(
data
.
image
.
data
.
attributes
)}
/
>
<
/div
>
))}
<
/div
>
<
/div
>
:
<
div
className
=
"d-flex align-items-center justify-content-center"
style
=
{{
height
:
'60vh'
}}
>
<
Empty
image
=
{
Empty
.
PRESENTED_IMAGE_SIMPLE
}
/
>
<
/div
>
<
/div
>
))}
}
<
/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