From 6cc17981c875d4bda12d7a91566c9101b7c24c9d Mon Sep 17 00:00:00 2001 From: cosa65 Date: Tue, 27 Feb 2024 09:18:42 -0300 Subject: [PATCH] Update guidanceFileLink for biomage domains Signed-off-by: cosa65 --- src/components/data-management/FileUploadModal.jsx | 5 ++--- src/utils/getDomainSpecificContent.jsx | 3 +++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/data-management/FileUploadModal.jsx b/src/components/data-management/FileUploadModal.jsx index 6ab6035ac5..401bf62edb 100644 --- a/src/components/data-management/FileUploadModal.jsx +++ b/src/components/data-management/FileUploadModal.jsx @@ -25,6 +25,7 @@ import handleError from 'utils/http/handleError'; import { fileObjectToFileRecord } from 'utils/upload/processSampleUpload'; import integrationTestConstants from 'utils/integrationTestConstants'; import endUserMessages from 'utils/endUserMessages'; +import getDomainSpecificContent from 'utils/getDomainSpecificContent'; const { Text, Title, Paragraph } = Typography; const { Option } = Select; @@ -61,8 +62,6 @@ const FileUploadModal = (props) => { const previouslyUploadedSamples = Object.keys(samples) .filter((key) => samples[key].experimentId === activeExperimentId); - const guidanceFileLink = 'https://drive.google.com/file/d/1VPaB-yofuExinY2pXyGEEx-w39_OPubO/view'; - const [selectedTech, setSelectedTech] = useState(currentSelectedTech ?? sampleTech['10X']); const [canUpload, setCanUpload] = useState(false); const [filesList, setFilesList] = useState([]); @@ -240,7 +239,7 @@ const FileUploadModal = (props) => { More guidance on supported file types and formats is available - here + here . diff --git a/src/utils/getDomainSpecificContent.jsx b/src/utils/getDomainSpecificContent.jsx index af0e7ecd29..7d698758a2 100644 --- a/src/utils/getDomainSpecificContent.jsx +++ b/src/utils/getDomainSpecificContent.jsx @@ -60,6 +60,7 @@ const domainSpecificContent = { }, HelpButton: reusedContent.HelpButton.OneToOneSupport, matomoName: 'cellenics', + guidanceFileLink: 'https://drive.google.com/file/d/1VPaB-yofuExinY2pXyGEEx-w39_OPubO/view', }, BIOMAGE: { containerIds: biomageContainerIds, @@ -84,6 +85,7 @@ const domainSpecificContent = { ), matomoName: 'biomage', ExtraLogoText: reusedContent.ExtraLogoText, + guidanceFileLink: 'https://www.biomage.net/user-guide', }, BIOMAGE_PRIVATE: { containerIds: biomageContainerIds, @@ -95,6 +97,7 @@ const domainSpecificContent = { ), ExtraLogoText: reusedContent.ExtraLogoText, + guidanceFileLink: 'https://www.biomage.net/user-guide', }, };