Commit 29b2cc52 by Ravindra Kanojiya

updated single gallery condition

1 parent 8c35d242
......@@ -6,14 +6,6 @@ import { Fancybox } from "@fancyapps/ui";
import "@fancyapps/ui/dist/fancybox/fancybox.css";
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 }) => {
useEffect(() => {
......@@ -38,7 +30,7 @@ const Gallery = ({ productData }) => {
<Row className="gallery-items">
{productData.map((item, index) => {
const isFullWidth = index % 3 === 2;
const isFullWidth = productData.length === 1 || index % 3 === 2;
return (
<Col
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!