Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update guidanceFileLink for biomage domains #988

Merged
merged 1 commit into from
Feb 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading