diff --git a/client/src/pages/openalex-ror/components/ror-badge.jsx b/client/src/pages/openalex-ror/components/ror-badge.jsx index f2ecafe..dd9e85a 100644 --- a/client/src/pages/openalex-ror/components/ror-badge.jsx +++ b/client/src/pages/openalex-ror/components/ror-badge.jsx @@ -21,14 +21,14 @@ export default function RorBadge({ {isRemoved ? ( https://ror.org/ - + {` ${ror.rorId}`} ) : ( <> https://ror.org/ - + {` ${ror.rorId}`} diff --git a/client/src/pages/openalex-ror/components/ror-badge_old.jsx b/client/src/pages/openalex-ror/components/ror-badge_old.jsx index a73dadd..a55d437 100644 --- a/client/src/pages/openalex-ror/components/ror-badge_old.jsx +++ b/client/src/pages/openalex-ror/components/ror-badge_old.jsx @@ -1,9 +1,7 @@ import { Link } from '@dataesr/dsfr-plus'; import PropTypes from 'prop-types'; -export default function RorBadge({ ror, setFilteredAffiliationName, rorColor }) { - console.log(rorColor, getComputedStyle(document.documentElement).getPropertyValue(`--${rorColor}`)); - +export default function RorBadge({ isRemoved, ror, setFilteredAffiliationName, rorColor }) { return (
@@ -15,40 +13,27 @@ export default function RorBadge({ ror, setFilteredAffiliationName, rorColor }) height="16" />
- https://ror.org/ - - {` ${ror.rorId}`} - + {isRemoved ? ( + + https://ror.org/ + + {` ${ror.rorId}`} + + + ) : ( + <> + https://ror.org/ + + {` ${ror.rorId}`} + + + )}