From d787821345074585193575b1f8f6c2b05516be15 Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Wed, 19 Apr 2023 11:43:24 -0700 Subject: [PATCH] IO-2086 Resolve cloudinary based thumbnail retrieval. --- .../jobs-documents-gallery.component.jsx | 4 ++-- .../jobs-documents-gallery.external.component.jsx | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/client/src/components/jobs-documents-gallery/jobs-documents-gallery.component.jsx b/client/src/components/jobs-documents-gallery/jobs-documents-gallery.component.jsx index 2e343ea44..d7e930e8b 100644 --- a/client/src/components/jobs-documents-gallery/jobs-documents-gallery.component.jsx +++ b/client/src/components/jobs-documents-gallery/jobs-documents-gallery.component.jsx @@ -34,8 +34,8 @@ function JobsDocumentsComponent({ const fileType = DetermineFileType(value.type); if (value.type.startsWith("image")) { acc.images.push({ - src: GenerateSrcUrl(value), - thumbnail: GenerateThumbUrl(value), + // src: GenerateSrcUrl(value), + src: GenerateThumbUrl(value), // src: GenerateSrcUrl(value), // thumbnail: GenerateThumbUrl(value), fullsize: GenerateSrcUrl(value), diff --git a/client/src/components/jobs-documents-gallery/jobs-documents-gallery.external.component.jsx b/client/src/components/jobs-documents-gallery/jobs-documents-gallery.external.component.jsx index 5465bbf5c..2ff912930 100644 --- a/client/src/components/jobs-documents-gallery/jobs-documents-gallery.external.component.jsx +++ b/client/src/components/jobs-documents-gallery/jobs-documents-gallery.external.component.jsx @@ -1,7 +1,7 @@ import React, { useEffect } from "react"; import { Gallery } from "react-grid-gallery"; import { useTranslation } from "react-i18next"; -import { GenerateSrcUrl, GenerateThumbUrl } from "./job-documents.utility"; +import { GenerateThumbUrl } from "./job-documents.utility"; function JobsDocumentGalleryExternal({ data, @@ -15,8 +15,8 @@ function JobsDocumentGalleryExternal({ let documents = data.reduce((acc, value) => { if (value.type.startsWith("image")) { acc.push({ - src: GenerateSrcUrl(value), - thumbnail: GenerateThumbUrl(value), + //src: GenerateSrcUrl(value), + src: GenerateThumbUrl(value), thumbnailHeight: 225, thumbnailWidth: 225, isSelected: false,