Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2976 from NCI-GDC/feat/dev-620-download-btn-updates
Browse files Browse the repository at this point in the history
DEV-620: Update btn text and add tooltip
  • Loading branch information
scintillating7 authored Apr 19, 2021
2 parents 29dd3d9 + 43ae314 commit 52b4fc6
Showing 1 changed file with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import AddToCartButtonSingle from '@ncigdc/components/AddToCartButtonSingle';
import DownloadFile from '@ncigdc/components/DownloadFile';
import DownloadClinicalDropdown from '@ncigdc/modern_components/DownloadClinicalDropdown/';
import { makeFilter } from '@ncigdc/utils/filters';
import { Tooltip } from '@ncigdc/uikit/Tooltip';

const styles = {
common: theme => ({
Expand Down Expand Up @@ -93,13 +94,15 @@ export default compose(
title={(
<Row style={{ justifyContent: 'space-between' }}>
<span>Clinical</span>
<DownloadClinicalDropdown
buttonStyles={visualizingButton}
filters={caseFilter}
inactiveText="Download"
jsonFilename={`clinical.case-${submitterId}-${projectId}.${timestamp()}.json`}
tsvFilename={`clinical.case-${submitterId}-${projectId}.${timestamp()}.tar.gz`}
<Tooltip Component={<span>Download JSON for Complete Set</span>}>
<DownloadClinicalDropdown
buttonStyles={visualizingButton}
filters={caseFilter}
inactiveText="Download Complete Set of Clinical Data"
jsonFilename={`clinical.case-${submitterId}-${projectId}.${timestamp()}.json`}
tsvFilename={`clinical.case-${submitterId}-${projectId}.${timestamp()}.tar.gz`}
/>
</Tooltip>
</Row>
)}
>
Expand Down

0 comments on commit 52b4fc6

Please sign in to comment.