Skip to content

Commit

Permalink
Merge pull request #270 from helxplatform/feature/debranding
Browse files Browse the repository at this point in the history
Use context.meta.title in footer and mobile menu header
  • Loading branch information
Hoid authored Sep 13, 2023
2 parents 2613cbd + 14690a8 commit 088372d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
10 changes: 9 additions & 1 deletion src/components/layout/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,15 @@ export const Layout = ({ children }) => {
{children}
{context.workspaces_enabled === 'true' && <SidePanel />}
</Content>
<Footer style={{ textAlign: 'center', paddingTop: 0 }}>&copy; HeLx {new Date().getFullYear()}</Footer>
{
context?.brand === 'heal'
? <Footer style={{ textAlign: 'center', paddingTop: 0 }}>
NIH HEAL Semantic Search is powered by Dug, an open source semantic search developed
by <a href="https://renci.org" target="_blank">RENCI</a> and <a href="https://www.rti.org/" target="_blank">RTI International</a>
</Footer>
: <Footer style={{ textAlign: 'center', paddingTop: 0 }}>&copy;{ context?.meta.title ?? 'HeLx' }{new Date().getFullYear()}</Footer>
}
<Footer style={{ textAlign: 'center', paddingTop: 0 }}></Footer>
</AntLayout>
)
}
6 changes: 5 additions & 1 deletion src/components/layout/menu/mobile-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ export const MobileMenu = ({menu}) => {
<div className="mobile-menu-toggle">
<Button onClick={() => setVisible(true)}><MenuOutlined /></Button>
<Drawer
title="HeLx UI"
title={
context?.brand === 'heal'
? 'NIH HEAL Semantic Search'
: context?.meta.title ?? 'HeLx'
}
placement="right"
closable={false}
onClose={() => setVisible(false)}
Expand Down

0 comments on commit 088372d

Please sign in to comment.