Skip to content

Commit

Permalink
Merge pull request #272 from helxplatform/remove-counts-from-modal
Browse files Browse the repository at this point in the history
Remove counts from concept modal and minor lint fixes
  • Loading branch information
YaphetKG authored Sep 19, 2023
2 parents 1f5782a + b302673 commit fc1054c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/components/layout/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,4 @@ export const Layout = ({ children }) => {
}
</AntLayout>
)
}
}
8 changes: 2 additions & 6 deletions src/components/layout/menu/mobile-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,7 @@ export const MobileMenu = ({menu}) => {
<div className="mobile-menu-toggle">
<Button onClick={() => setVisible(true)}><MenuOutlined /></Button>
<Drawer
title={
context?.brand === 'heal'
? 'NIH HEAL Semantic Search'
: context?.meta.title ?? 'HeLx'
}
title={ context?.meta.title ?? 'HeLx' }
placement="right"
closable={false}
onClose={() => setVisible(false)}
Expand All @@ -50,4 +46,4 @@ export const MobileMenu = ({menu}) => {
</Drawer>
</div>
)
}
}
2 changes: 1 addition & 1 deletion src/components/modal/Modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@ class Modal extends Component {
</Background>
)
}
};
}

export {Modal};
4 changes: 2 additions & 2 deletions src/components/search/concept-modal/concept-modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@ export const ConceptModalBody = ({ result }) => {

const studyTitle = (
<div style={{ display: "inline" }}>
Studies { studies ? `(${ Object.keys(studies).length })` : <BouncingDots /> }
Studies
</div>
)
const cdeTitle = (
<div style={{ display: "inline" }}>
CDEs { !cdesLoading ? `(${ Object.keys(cdes ?? []).length })` : <BouncingDots /> }
CDEs
</div>
)

Expand Down

0 comments on commit fc1054c

Please sign in to comment.