From 90cb89ffa26b83892875b4a02f2d5ecc378bc70d Mon Sep 17 00:00:00 2001 From: jerem Date: Wed, 20 Nov 2024 16:24:55 +0100 Subject: [PATCH] refactor(openalex): simplify RorBadge component and improve layout in ListView --- .../openalex-ror/components/ror-badge_old.jsx | 12 ++---- .../openalex-ror/components/works-list.jsx | 2 +- .../pages/openalex-ror/results/list-view.jsx | 42 +++++++++++-------- 3 files changed, 29 insertions(+), 27 deletions(-) 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 a55d437..ef3b411 100644 --- a/client/src/pages/openalex-ror/components/ror-badge_old.jsx +++ b/client/src/pages/openalex-ror/components/ror-badge_old.jsx @@ -15,18 +15,14 @@ export default function RorBadge({ isRemoved, ror, setFilteredAffiliationName, r {isRemoved ? ( - https://ror.org/ - {` ${ror.rorId}`} + {`https://ror.org/${ror.rorId}`} ) : ( - <> - https://ror.org/ - - {` ${ror.rorId}`} - - + + {`https://ror.org/${ror.rorId}`} + )}