Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nickakhmetov/HMP-275 Fix publication tooltip appearing on other pages #3174

Merged
merged 2 commits into from
Jul 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG-hmp-275.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Fix publication tooltip errantly appearing on other pages
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
Loading