diff --git a/src/components/resource-sections/components/overview/index.tsx b/src/components/resource-sections/components/overview/index.tsx index 3b066580..496e74cd 100644 --- a/src/components/resource-sections/components/overview/index.tsx +++ b/src/components/resource-sections/components/overview/index.tsx @@ -60,7 +60,8 @@ const Overview: React.FC = ({ spatialCoverage || temporalCoverage?.some(coverage => coverage.temporalInterval) === true || - inLanguage + inLanguage?.name || + inLanguage?.alternateName ), }, ], diff --git a/src/components/sources/components/main.tsx b/src/components/sources/components/main.tsx index a934b006..23893bc5 100644 --- a/src/components/sources/components/main.tsx +++ b/src/components/sources/components/main.tsx @@ -137,11 +137,12 @@ const Main: React.FC
= ({ data, isLoading, metadata }) => { {sources.map((sourceObj: SourceResponse, i: number) => { + const id = `${sourceObj.name.replace(/\s+/g, '-')}`; return ( = ({ data }) => { {sourceNames.map(([name, id], index) => { return ( - + {name}{' '} diff --git a/src/components/tag-with-url/index.tsx b/src/components/tag-with-url/index.tsx index ef369ec3..644604b9 100644 --- a/src/components/tag-with-url/index.tsx +++ b/src/components/tag-with-url/index.tsx @@ -32,6 +32,7 @@ export const TagWithUrl = ({ children, label, href, + isExternal, leftIcon, ...props }: TagWithUrlProps) => { @@ -55,19 +56,19 @@ export const TagWithUrl = ({ // See issue: https://github.com/NIAID-Data-Ecosystem/nde-portal/issues/245 if (!href) return ( - + ); return ( - + *': { + '.tag-text': { textDecoration: 'none', }, }} @@ -75,15 +76,21 @@ export const TagWithUrl = ({ {...props} > {leftIcon && } - );