From 3e0891e1e900469b74530ea555e72d647bab55cf Mon Sep 17 00:00:00 2001 From: Gaurav Vaidya Date: Fri, 15 Sep 2023 13:30:08 -0400 Subject: [PATCH 1/6] First stab at removing counts from concept modal. --- src/components/search/concept-modal/concept-modal.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/search/concept-modal/concept-modal.js b/src/components/search/concept-modal/concept-modal.js index 5b58a108..3be48fdb 100644 --- a/src/components/search/concept-modal/concept-modal.js +++ b/src/components/search/concept-modal/concept-modal.js @@ -88,12 +88,12 @@ export const ConceptModalBody = ({ result }) => { const studyTitle = (
- Studies { studies ? `(${ Object.keys(studies).length })` : } + Studies
) const cdeTitle = (
- CDEs { !cdesLoading ? `(${ Object.keys(cdes ?? []).length })` : } + CDEs
) From 11d9c02ff9c830535a398fbac7f8fb5d72cb287b Mon Sep 17 00:00:00 2001 From: Gaurav Vaidya Date: Fri, 15 Sep 2023 13:31:42 -0400 Subject: [PATCH 2/6] Added rel="noreferrer" as per lint. `npm run lint` suggested this, with a link to https://mathiasbynens.github.io/rel-noopener/#recommendations by way of an explanation. --- src/components/layout/layout.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/layout/layout.js b/src/components/layout/layout.js index 59e475a0..94b5063f 100644 --- a/src/components/layout/layout.js +++ b/src/components/layout/layout.js @@ -97,7 +97,7 @@ export const Layout = ({ children }) => { context?.brand === 'heal' ? :
©{ context?.meta.title ?? 'HeLx' }{new Date().getFullYear()}
} From 2f25391bd3ed0fbaf071e624cd3c07a8b599594a Mon Sep 17 00:00:00 2001 From: Gaurav Vaidya Date: Fri, 15 Sep 2023 13:32:38 -0400 Subject: [PATCH 3/6] lint removed trailing semicolon. --- src/components/modal/Modal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/modal/Modal.js b/src/components/modal/Modal.js index d8a6b81f..3f597038 100644 --- a/src/components/modal/Modal.js +++ b/src/components/modal/Modal.js @@ -61,6 +61,6 @@ class Modal extends Component { ) } -}; +} export {Modal}; \ No newline at end of file From 31d8f23d5fa3912c71b42849a941081176ec0903 Mon Sep 17 00:00:00 2001 From: YaphetKG <45075777+YaphetKG@users.noreply.github.com> Date: Mon, 18 Sep 2023 11:37:45 -0400 Subject: [PATCH 4/6] Update layout.js --- src/components/layout/layout.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/layout/layout.js b/src/components/layout/layout.js index 94b5063f..3e6edbeb 100644 --- a/src/components/layout/layout.js +++ b/src/components/layout/layout.js @@ -96,7 +96,7 @@ export const Layout = ({ children }) => { { context?.brand === 'heal' ?
- NIH HEAL Semantic Search is powered by Dug, an open source semantic search developed + HEAL Semantic Search is powered by Dug, an open source semantic search developed by RENCI and RTI International
:
©{ context?.meta.title ?? 'HeLx' }{new Date().getFullYear()}
@@ -104,4 +104,4 @@ export const Layout = ({ children }) => {
) -} \ No newline at end of file +} From 63d4df8921d10b931ea0f540459290f86c577bf6 Mon Sep 17 00:00:00 2001 From: YaphetKG <45075777+YaphetKG@users.noreply.github.com> Date: Mon, 18 Sep 2023 11:48:57 -0400 Subject: [PATCH 5/6] Update mobile-menu.js --- src/components/layout/menu/mobile-menu.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/components/layout/menu/mobile-menu.js b/src/components/layout/menu/mobile-menu.js index 65f51369..d4e7f153 100644 --- a/src/components/layout/menu/mobile-menu.js +++ b/src/components/layout/menu/mobile-menu.js @@ -23,11 +23,7 @@ export const MobileMenu = ({menu}) => {
setVisible(false)} @@ -40,4 +36,4 @@ export const MobileMenu = ({menu}) => {
) -} \ No newline at end of file +} From b3026733d3a0032017854aea0080ecbd020b894a Mon Sep 17 00:00:00 2001 From: Gaurav Vaidya Date: Tue, 19 Sep 2023 15:07:36 -0400 Subject: [PATCH 6/6] Restored "NIH" to footer. --- src/components/layout/layout.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/layout/layout.js b/src/components/layout/layout.js index 973f044a..7d49b0c9 100644 --- a/src/components/layout/layout.js +++ b/src/components/layout/layout.js @@ -95,7 +95,7 @@ export const Layout = ({ children }) => { { context?.brand === 'heal' ?
- HEAL Semantic Search is powered by Dug, an open source semantic search developed + NIH HEAL Semantic Search is powered by Dug, an open source semantic search developed by RENCI and RTI International
: