diff --git a/src/components/AbstractDetails/AbstractDetails.tsx b/src/components/AbstractDetails/AbstractDetails.tsx index 373196501..ea0fa15cd 100644 --- a/src/components/AbstractDetails/AbstractDetails.tsx +++ b/src/components/AbstractDetails/AbstractDetails.tsx @@ -41,7 +41,7 @@ interface IDetailsProps { interface IDetailProps> { label: string | ReactNode; href?: string; - newTab?: boolean; + external?: boolean; value: T; copiable?: boolean; children?: (value: T) => ReactElement; @@ -98,7 +98,7 @@ export const AbstractDetails = ({ doc }: IDetailsProps): ReactElement => { label="arXiv" value={arxiv} href={createUrlByType(doc?.bibcode, 'arxiv', arxiv?.split(':')[1])} - newTab + external /> @@ -117,7 +117,7 @@ export const AbstractDetails = ({ doc }: IDetailsProps): ReactElement => { // TODO: this should take in a list of deps or the whole doc and show/hide based on that const Detail = (props: IDetailProps): ReactElement => { - const { label, href, newTab = false, value, copiable = false, children } = props; + const { label, href, external = false, value, copiable = false, children } = props; // show nothing if no value if (isNilOrEmpty(value)) { @@ -131,8 +131,8 @@ const Detail = (props: IDetailProps): ReactEleme {label} {href && ( - - {normalizedValue} + + {normalizedValue} {external && } )} {typeof children === 'function' @@ -159,12 +159,14 @@ const Doi = memo(({ doiIDs, bibcode }: { doiIDs: Array; bibcode: string - Open DOI link + Open DOI link } > - {id} + + {id} + @@ -229,7 +231,13 @@ const UATKeywords = memo(({ keywords, ids }: { keywords: Array; ids: Arr {keywords.map((keyword, index) => ( - + + {keyword} + + } + > {shortenKeyword(keyword)} @@ -305,7 +313,7 @@ const Bibgroups = memo(({ bibgroups }: { bibgroups: Array }) => { - Click to learn about bibgroups + Click to learn about bibgroups } >