Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
sujata
/
Akruti-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 29b2cc52
authored
2026-04-08 18:14:59 +0530
by
Ravindra Kanojiya
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
updated single gallery condition
1 parent
8c35d242
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
9 deletions
components/Collection/Gallery.js
components/Collection/Gallery.js
View file @
29b2cc5
...
@@ -6,14 +6,6 @@ import { Fancybox } from "@fancyapps/ui";
...
@@ -6,14 +6,6 @@ import { Fancybox } from "@fancyapps/ui";
import
"@fancyapps/ui/dist/fancybox/fancybox.css"
;
import
"@fancyapps/ui/dist/fancybox/fancybox.css"
;
import
{
cleanImage
}
from
"../services/imageHandling"
;
import
{
cleanImage
}
from
"../services/imageHandling"
;
const
galleryData
=
[
{
id
:
1
,
src
:
"/image/gallery/01.png"
,
col
:
6
},
{
id
:
2
,
src
:
"/image/gallery/02.png"
,
col
:
6
},
{
id
:
3
,
src
:
"/image/gallery/03.png"
,
col
:
12
},
{
id
:
4
,
src
:
"/image/gallery/04.png"
,
col
:
6
},
{
id
:
5
,
src
:
"/image/gallery/05.png"
,
col
:
6
},
];
const
Gallery
=
({
productData
})
=>
{
const
Gallery
=
({
productData
})
=>
{
useEffect
(()
=>
{
useEffect
(()
=>
{
...
@@ -38,7 +30,7 @@ const Gallery = ({ productData }) => {
...
@@ -38,7 +30,7 @@ const Gallery = ({ productData }) => {
<
Row
className
=
"gallery-items"
>
<
Row
className
=
"gallery-items"
>
{
productData
.
map
((
item
,
index
)
=>
{
{
productData
.
map
((
item
,
index
)
=>
{
const
isFullWidth
=
index
%
3
===
2
;
const
isFullWidth
=
productData
.
length
===
1
||
index
%
3
===
2
;
return
(
return
(
<
Col
<
Col
...
...
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