Skip to content

Commit

Permalink
MVP-275 Fix publication tooltip appearing on non-publication pages
Browse files Browse the repository at this point in the history
  • Loading branch information
NickAkhmetov committed Jul 14, 2023
1 parent 2957e09 commit 701358f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import Button from '@material-ui/core/Button';
import SectionHeader from 'js/shared-styles/sections/SectionHeader';
import { SpacedSectionButtonRow } from 'js/shared-styles/sections/SectionButtonRow';

function RelatedEntitiesSectionHeader({ header, searchPageHref }) {
function RelatedEntitiesSectionHeader({ header, searchPageHref, iconTooltipText }) {
return (
<SpacedSectionButtonRow
leftText={
<div>
<SectionHeader iconTooltipText="HuBMAP data created or used by the publication.">{header}</SectionHeader>
<SectionHeader iconTooltipText={iconTooltipText}>{header}</SectionHeader>
</div>
}
buttons={
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ function PublicationRelatedEntities({ uuid }) {
<RelatedEntitiesSectionHeader
header="Data"
uuid={uuid}
iconTooltipText="HuBMAP data created or used by the publication."
searchPageHref={`/search?descendant_ids[0]=${uuid}&entity_type[0]=${entities[openIndex].entityType}`}
/>
}
Expand Down

0 comments on commit 701358f

Please sign in to comment.