Skip to content

Commit 7b1e253

Browse files
committed
fix: rename icon component to export icon (#4741)
1 parent 698946a commit 7b1e253

3 files changed

Lines changed: 12 additions & 12 deletions

File tree

app/components/Export/components/AnVILExplorer/components/ExportMethod/components/Icon/icon.tsx renamed to app/components/Export/components/AnVILExplorer/components/ExportMethod/components/ExportIcon/exportIcon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type { ComponentProps, JSX } from "react";
66
* @param props - Component props.
77
* @returns JSX element representing the icon.
88
*/
9-
export const Icon = (
9+
export const ExportIcon = (
1010
props: ComponentProps<typeof StaticImage>
1111
): JSX.Element => {
1212
return <StaticImage {...props} />;

app/viewModelBuilders/azul/anvil-cmg/common/viewModelBuilders.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ import * as MDX from "../../../../components/common/MDXContent/anvil-cmg";
104104
import { RequestAccess } from "../../../../components/Detail/components/AnVILCMG/components/RequestAccess/requestAccess";
105105
import { Description } from "../../../../components/Detail/components/MDX/components/Description/description";
106106
import { ExportEntity } from "../../../../components/Export/components/AnVILExplorer/components/ExportEntity/exportEntity";
107-
import { Icon } from "../../../../components/Export/components/AnVILExplorer/components/ExportMethod/components/Icon/icon";
107+
import { ExportIcon } from "../../../../components/Export/components/AnVILExplorer/components/ExportMethod/components/ExportIcon/exportIcon";
108108
import { METADATA_KEY } from "../../../../components/Index/common/entities";
109109
import { getPluralizedMetadataLabel } from "../../../../components/Index/common/indexTransformer";
110110
import { SUMMARY_DISPLAY_TEXT } from "./summaryMapper/constants";
@@ -473,7 +473,7 @@ export const buildDatasetExportMethodManifestDownload = (
473473
return {
474474
description:
475475
"Download a TSV manifest containing metadata for all data files in the dataset.",
476-
icon: <Icon alt="Manifest" src="/export/manifest.webp" width={24} />,
476+
icon: <ExportIcon alt="Manifest" src="/export/manifest.webp" width={24} />,
477477
route: `${datasetPath}${ROUTES.MANIFEST_DOWNLOAD}`,
478478
title: "Download TSV Manifest",
479479
};
@@ -507,7 +507,7 @@ export const buildDatasetExportMethodTerra = (
507507
return {
508508
description:
509509
"Terra is a biomedical research platform to analyze data using workflows, Jupyter Notebooks, RStudio, and Galaxy.",
510-
icon: <Icon alt="Terra" src="/export/terra.webp" width={24} />,
510+
icon: <ExportIcon alt="Terra" src="/export/terra.webp" width={24} />,
511511
route: `${datasetPath}${ROUTES.TERRA}`,
512512
title: "Export to Terra",
513513
};
@@ -537,7 +537,7 @@ export const buildDatasetExportMethodCurlCommand = (
537537
return {
538538
description:
539539
"Generate a curl command to download all files in this open-access dataset.",
540-
icon: <Icon alt="curl" src="/export/curl.webp" width={24} />,
540+
icon: <ExportIcon alt="curl" src="/export/curl.webp" width={24} />,
541541
route: `${datasetPath}${ROUTES.CURL_DOWNLOAD}`,
542542
title: "Download Open-Access Data Files (No Data Transfer Fees)",
543543
};
@@ -891,7 +891,7 @@ export const buildExportMethodManifestDownload = (
891891
...getExportMethodAccessibility(viewContext),
892892
description:
893893
"Download a TSV manifest containing metadata for all data files in the current selection, including managed-access files.",
894-
icon: <Icon alt="Manifest" src="/export/manifest.webp" width={24} />,
894+
icon: <ExportIcon alt="Manifest" src="/export/manifest.webp" width={24} />,
895895
route: ROUTES.MANIFEST_DOWNLOAD,
896896
title: "Download TSV Manifest for All Selected Data Files",
897897
};
@@ -911,7 +911,7 @@ export const buildExportMethodTerra = (
911911
...getExportMethodAccessibility(viewContext),
912912
description:
913913
"Terra is a biomedical research platform to analyze data using workflows, Jupyter Notebooks, RStudio, and Galaxy.",
914-
icon: <Icon alt="Terra" src="/export/terra.webp" width={24} />,
914+
icon: <ExportIcon alt="Terra" src="/export/terra.webp" width={24} />,
915915
route: ROUTES.TERRA,
916916
title: "Export to Terra",
917917
};
@@ -962,7 +962,7 @@ export const buildExportMethodBulkDownload = (
962962
files in the current selection.
963963
</div>
964964
),
965-
icon: <Icon alt="curl" src="/export/curl.webp" width={24} />,
965+
icon: <ExportIcon alt="curl" src="/export/curl.webp" width={24} />,
966966
route: ROUTES.CURL_DOWNLOAD,
967967
title: "Download Open-Access Data Files (No Data Transfer Fees)",
968968
};

site-config/anvil-cmg/dev/export/constants.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { ExportMethod } from "@databiosphere/findable-ui/lib/components/Export/components/ExportMethod/exportMethod";
22
import { ComponentProps } from "react";
33
import { ExportToPlatform } from "../../../../app/components";
4-
import { Icon } from "../../../../app/components/Export/components/AnVILExplorer/components/ExportMethod/components/Icon/icon";
4+
import { ExportIcon } from "../../../../app/components/Export/components/AnVILExplorer/components/ExportMethod/components/ExportIcon/exportIcon";
55
import { ROUTES } from "./routes";
66

77
export const EXPORTS: Record<
@@ -43,19 +43,19 @@ export const EXPORT_METHODS: Record<
4343
> = {
4444
BIO_DATA_CATALYST: {
4545
description: EXPORTS.BIO_DATA_CATALYST.description,
46-
icon: <Icon alt="BDC" src="/export/bdc.webp" width={24} />,
46+
icon: <ExportIcon alt="BDC" src="/export/bdc.webp" width={24} />,
4747
route: ROUTES.BIO_DATA_CATALYST,
4848
title: "Export to BioData Catalyst Powered by Seven Bridges (BDC-SB)",
4949
},
5050
CANCER_GENOMICS_CLOUD: {
5151
description: EXPORTS.CANCER_GENOMICS_CLOUD.description,
52-
icon: <Icon alt="CGC" src="/export/cgc.webp" width={24} />,
52+
icon: <ExportIcon alt="CGC" src="/export/cgc.webp" width={24} />,
5353
route: ROUTES.CANCER_GENOMICS_CLOUD,
5454
title: "Export to Cancer Genomics Cloud (CGC)",
5555
},
5656
CAVATICA: {
5757
description: EXPORTS.CAVATICA.description,
58-
icon: <Icon alt="CAVATICA" src="/export/cavatica.webp" width={24} />,
58+
icon: <ExportIcon alt="CAVATICA" src="/export/cavatica.webp" width={24} />,
5959
route: ROUTES.CAVATICA,
6060
title: "Export to CAVATICA",
6161
},

0 commit comments

Comments
 (0)