Skip to content

Commit

Permalink
Update guidanceFileLink for biomage domains
Browse files Browse the repository at this point in the history
Signed-off-by: cosa65 <[email protected]>
  • Loading branch information
cosa65 committed Feb 27, 2024
1 parent 0ea6a41 commit 6cc1798
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/data-management/FileUploadModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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([]);
Expand Down Expand Up @@ -240,7 +239,7 @@ const FileUploadModal = (props) => {
<span style={{ display: 'block', height: '0.6rem' }} />
<i>
More guidance on supported file types and formats is available
<a rel='noreferrer' target='_blank' href={guidanceFileLink}> here</a>
<a rel='noreferrer' target='_blank' href={getDomainSpecificContent('guidanceFileLink')}> here</a>
.
</i>
</Paragraph>
Expand Down
3 changes: 3 additions & 0 deletions src/utils/getDomainSpecificContent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -84,6 +85,7 @@ const domainSpecificContent = {
),
matomoName: 'biomage',
ExtraLogoText: reusedContent.ExtraLogoText,
guidanceFileLink: 'https://www.biomage.net/user-guide',
},
BIOMAGE_PRIVATE: {
containerIds: biomageContainerIds,
Expand All @@ -95,6 +97,7 @@ const domainSpecificContent = {
</>
),
ExtraLogoText: reusedContent.ExtraLogoText,
guidanceFileLink: 'https://www.biomage.net/user-guide',
},
};

Expand Down

0 comments on commit 6cc1798

Please sign in to comment.