diff --git a/client/src/components/infoDrawer/infoFormat.js b/client/src/components/infoDrawer/infoFormat.js index 6909e7cf..f68cacda 100644 --- a/client/src/components/infoDrawer/infoFormat.js +++ b/client/src/components/infoDrawer/infoFormat.js @@ -1,8 +1,6 @@ -import { H3, H1, UL } from "@blueprintjs/core"; +import { H3, H1, UL, HTMLTable, Classes } from "@blueprintjs/core"; import React from "react"; -import Truncate from "../util/truncate"; - const renderContributors = (contributors, affiliations) => { // eslint-disable-next-line no-constant-condition -- Temp removed contributor section to avoid publishing PII if (!contributors || contributors.length === 0 || true) return null; @@ -71,63 +69,63 @@ const renderDOILink = (type, doi) => { ); }; -const renderOrganism = (organism) => { - if (!organism) return null; - return ( - <> -
{organism}
- > - ); -}; - const ONTOLOGY_KEY = "ontology_term_id"; -const CAT_WIDTH = "30%"; -const VAL_WIDTH = "35%"; // Render list of metadata attributes found in categorical field -const renderSingleValueCategories = (singleValueCategories) => { +const renderDatasetMetadata = (singleValueCategories, corporaMetadata) => { if (singleValueCategories.size === 0) return null; return ( <>