HomePhabricator
Diffusion Comm b4efda7028af

[web] convert createTooltip to getTooltipPositionStyle

Description

[web] convert createTooltip to getTooltipPositionStyle

Summary:
In an effort to make the tooltip code more component agnostic, I refactored this function to only get and return the tooltip position style since this logic can be reused for every single different type of tooltip we introduce in the future (which we are about to do shortly), and factored out any message tooltip specific code and put it back into the useMessageTooltip hook

Depends on D8826

Test Plan: flow and confirmed that the message tooltip on web still behaves and works as expected

Reviewers: atul, kamil, rohan

Reviewed By: atul, rohan

Subscribers: ashoat, tomek

Differential Revision: https://phab.comm.dev/D8827

Details

Provenance
ginsuAuthored on Aug 15 2023, 7:27 PM
Reviewer
atul
Differential Revision
D8827: [web] convert createTooltip to getTooltipPositionStyle
Parents
rCOMMfec142e714fa: [web] rename getMessageActionTooltipStyle to getTooltipStyle
Branches
Unknown
Tags
Unknown