diff --git a/src/components/data-management/FileUploadModal.jsx b/src/components/data-management/FileUploadModal.jsx index 7b9562bff..00328b310 100644 --- a/src/components/data-management/FileUploadModal.jsx +++ b/src/components/data-management/FileUploadModal.jsx @@ -221,11 +221,9 @@ const FileUploadModal = (props) => { - Is your dataset generated using another single cell RNA-seq technology (e.g. Nadia, inDrop, etc.)? Email us to find out if we can support your data: - - {' '} - {config.supportEmail} - + Don't have data in an accepted format? + {' '} + {getDomainSpecificContent('helpMessage')} @@ -242,23 +240,6 @@ const FileUploadModal = (props) => { - - - - - Don’t have the data in the accepted format? Email us for help with file conversion (e.g. from Fastq or H5 file): - {config.supportEmail} - - - - More guidance on supported file types and formats is available - here - . - - - - - {/* eslint-disable react/jsx-props-no-spreading */} diff --git a/src/components/data-management/metadata/MetadataUploadModal.jsx b/src/components/data-management/metadata/MetadataUploadModal.jsx index 4320bbe41..93713b3eb 100644 --- a/src/components/data-management/metadata/MetadataUploadModal.jsx +++ b/src/components/data-management/metadata/MetadataUploadModal.jsx @@ -21,6 +21,7 @@ import config from 'config'; import handleError from 'utils/http/handleError'; import endUserMessages from 'utils/endUserMessages'; import readFileToString from 'utils/upload/readFileToString'; +import getDomainSpecificContent from 'utils/getDomainSpecificContent'; const { Text, Title, Paragraph } = Typography; @@ -160,9 +161,9 @@ const MetadataUploadModal = (props) => { - Don’t have the data in the accepted format? Email us for help with file conversion: + Don’t have the data in an accepted format? {' '} - {config.supportEmail} + {getDomainSpecificContent('helpMessage')} diff --git a/src/utils/getDomainSpecificContent.jsx b/src/utils/getDomainSpecificContent.jsx index 7d698758a..ada78240a 100644 --- a/src/utils/getDomainSpecificContent.jsx +++ b/src/utils/getDomainSpecificContent.jsx @@ -61,6 +61,14 @@ const domainSpecificContent = { HelpButton: reusedContent.HelpButton.OneToOneSupport, matomoName: 'cellenics', guidanceFileLink: 'https://drive.google.com/file/d/1VPaB-yofuExinY2pXyGEEx-w39_OPubO/view', + helpMessage: () => ( + <> + Email us to find out if we can support your data: + + {config.supportEmail} + + + ), }, BIOMAGE: { containerIds: biomageContainerIds, @@ -86,18 +94,26 @@ const domainSpecificContent = { matomoName: 'biomage', ExtraLogoText: reusedContent.ExtraLogoText, guidanceFileLink: 'https://www.biomage.net/user-guide', + helpMessage: ( + <> + Reach out to us using the feedback button at the top of the page. + + ), }, BIOMAGE_PRIVATE: { containerIds: biomageContainerIds, HelpButton: ( <> {reusedContent.HelpButton.BiomageUserGuide} -
- {reusedContent.HelpButton.OneToOneSupport} ), ExtraLogoText: reusedContent.ExtraLogoText, guidanceFileLink: 'https://www.biomage.net/user-guide', + helpMessage: ( + <> + Reach out to us using the feedback button at the top of the page. + + ), }, };