From 18938828a92d036e93c32064b41e83ced18fe1ed Mon Sep 17 00:00:00 2001 From: Michael Baudis Date: Mon, 19 Feb 2024 18:48:05 +0100 Subject: [PATCH] commenting out old maps --- .../searchResults/DatasetResultBox.js | 56 +++++++++---------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/src/components/searchResults/DatasetResultBox.js b/src/components/searchResults/DatasetResultBox.js index d69404a5..a677ca3f 100644 --- a/src/components/searchResults/DatasetResultBox.js +++ b/src/components/searchResults/DatasetResultBox.js @@ -1,7 +1,7 @@ import React, { useRef, useState } from "react" import { // MAX_HISTO_SAMPLES, - SITE_DEFAULTS, + // SITE_DEFAULTS, replaceWithProxy, useProgenetixApi, useExtendedSWR @@ -16,7 +16,7 @@ import { svgFetcher } from "../../hooks/fetcher" import BiosamplesStatsDataTable from "./BiosamplesStatsDataTable" import { WithData } from "../Loader" import { openJsonInNewTab } from "../../utils/files" -import dynamic from "next/dynamic" +// import dynamic from "next/dynamic" import { getVisualizationLink } from "../../modules/service-pages/dataVisualizationPage" const HANDOVER_IDS = { @@ -38,7 +38,7 @@ const HANDOVER_IDS = { const TABS = { results: "Results", samples: "Biosamples", - samplesMap: "Biosamples Map", + // samplesMap: "Biosamples Map", variants: "Variants" } @@ -97,9 +97,9 @@ export function DatasetResultBox({ data: responseSet, query }) { biosamplesHandover && tabNames.push(TABS.samples) - biosamplesReply?.data?.response?.resultSets[0].results?.some( - (biosample) => !!biosample.provenance?.geoLocation - ) && tabNames.push(TABS.samplesMap) + // biosamplesReply?.data?.response?.resultSets[0].results?.some( + // (biosample) => !!biosample.provenance?.geoLocation + // ) && tabNames.push(TABS.samplesMap) if (handoverById(HANDOVER_IDS.variants)) tabNames.push(TABS.variants) @@ -126,25 +126,25 @@ export function DatasetResultBox({ data: responseSet, query }) { tabComponent = ( ) - } else if (selectedTab === TABS.samplesMap) { - tabComponent = ( -
-

Sample Origins

-

- The map represents the origins of the matched samples, as derived from - the original publication or resource repository. In the majority of - cases this will correspond to the proxy information of the - corresponding author's institution. Additional information can be - found in the{" "} - - {"."} -

- -
- ) + // } else if (selectedTab === TABS.samplesMap) { + // tabComponent = ( + //
+ //

Sample Origins

+ //

+ // The map represents the origins of the matched samples, as derived from + // the original publication or resource repository. In the majority of + // cases this will correspond to the proxy information of the + // corresponding author's institution. Additional information can be + // found in the{" "} + // + // {"."} + //

+ // + //
+ // ) } else if (selectedTab === TABS.variants) { tabComponent = ( @@ -397,6 +397,6 @@ function PagedLink({ handover }) { ) } -const BiosamplesMap = dynamic(() => import("./BioSamplesMap"), { - ssr: false -}) +// const BiosamplesMap = dynamic(() => import("./BioSamplesMap"), { +// ssr: false +// })