Skip to content

Commit

Permalink
Make "### Studies" a link and remove button from tooltip (#867)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmfalke authored Feb 16, 2024
1 parent 46eabd1 commit 927841a
Showing 1 changed file with 12 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,6 @@ export function MapTypeHeaderStudyDetails(props: Props) {
{studyEntityCount.data.count === 1
? studyEntity.displayName
: studyEntity.displayNamePlural}{' '}
<button type="button" onClick={() => onShowStudies(true)}>
Show list
</button>
</p>
)}
</div>
Expand All @@ -140,7 +137,6 @@ export function MapTypeHeaderStudyDetails(props: Props) {
padding: '1em',
fontSize: '1.2em',
display: 'flex',
gap: '1ex',
alignItems: 'center',
}}
>
Expand All @@ -151,13 +147,20 @@ export function MapTypeHeaderStudyDetails(props: Props) {
: outputEntity.displayNamePlural}
{onShowStudies && studyEntity && (
<>
{' '}
from {format(studyEntityCount.data.count)}{' '}
{studyEntityCount.data.count === 1
? studyEntity.displayName
: studyEntity.displayNamePlural}
&nbsp;from&nbsp;
<button
className="link"
type="button"
onClick={() => onShowStudies(true)}
>
{format(studyEntityCount.data.count)}{' '}
{studyEntityCount.data.count === 1
? studyEntity.displayName
: studyEntity.displayNamePlural}
</button>
</>
)}
&nbsp;
<Tooltip title={tooltipContent} interactive style={{ width: 'auto' }}>
<Info style={{ color: '#069', height: '.8em', width: '.8em' }} />
</Tooltip>
Expand Down

0 comments on commit 927841a

Please # to comment.