Skip to content

Commit

Permalink
Merge pull request #23 from nemac/popup
Browse files Browse the repository at this point in the history
Popup working both ways
  • Loading branch information
levy22d authored Dec 16, 2024
2 parents 00b2956 + cc600f2 commit 49cd22d
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/components/PractitionerPane.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,13 +166,24 @@ function PractitionerHeader({ strTrained, practitioner, poppedPractitioner, setP
<Box sx={{ width: '100%', display: 'flex', justifyContent: 'center' }}>
<StrTrainedBadge isTrained={strTrained} />
</Box>

{/* Display popup with hover events depending on if it's mobile or desktop */}
<ProfilePopper
headerRef={headerRef}
practitioner={practitioner}
poppedPractitioner={poppedPractitioner}
setPoppedPractitioner={setPoppedPractitioner}
sx ={{display: { xs: 'inherit', md: 'none' }}}
/>

<ProfilePopper
headerRef={headerRef}
practitioner={practitioner}
poppedPractitioner={poppedPractitioner}
setPoppedPractitioner={setPoppedPractitioner}
// onMouseEnter={handleMouseEnter}
// onMouseLeave={handleMouseLeave}
onMouseEnter={handleMouseEnter}
onMouseLeave={handleMouseLeave}
sx ={{display: { xs: 'none', md: 'inherit' }}}
/>

<Button
Expand Down

0 comments on commit 49cd22d

Please sign in to comment.