Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3368934
D8826.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D8826.diff
View Options
diff --git a/web/utils/tooltip-action-utils.js b/web/utils/tooltip-action-utils.js
--- a/web/utils/tooltip-action-utils.js
+++ b/web/utils/tooltip-action-utils.js
@@ -22,7 +22,7 @@
import {
type MessageTooltipAction,
findTooltipPosition,
- getMessageActionTooltipStyle,
+ getTooltipStyle,
calculateTooltipSize,
type TooltipSize,
type TooltipPosition,
@@ -341,7 +341,7 @@
return undefined;
}
- const tooltipPositionStyle = getMessageActionTooltipStyle({
+ const tooltipPositionStyle = getTooltipStyle({
tooltipPosition,
sourcePositionInfo: tooltipMessagePosition,
tooltipSize,
diff --git a/web/utils/tooltip-utils.js b/web/utils/tooltip-utils.js
--- a/web/utils/tooltip-utils.js
+++ b/web/utils/tooltip-utils.js
@@ -174,7 +174,7 @@
return defaultPosition;
}
-type GetMessageActionTooltipStyleParams = {
+type GetTooltipStyleParams = {
+sourcePositionInfo: PositionInfo,
+tooltipSize: TooltipSize,
+tooltipPosition: TooltipPosition,
@@ -182,11 +182,11 @@
// ESLint doesn't recognize that invariant always throws
// eslint-disable-next-line consistent-return
-function getMessageActionTooltipStyle({
+function getTooltipStyle({
sourcePositionInfo,
tooltipSize,
tooltipPosition,
-}: GetMessageActionTooltipStyleParams): TooltipPositionStyle {
+}: GetTooltipStyleParams): TooltipPositionStyle {
if (tooltipPosition === tooltipPositions.RIGHT_TOP) {
return {
anchorPoint: {
@@ -317,8 +317,4 @@
};
}
-export {
- findTooltipPosition,
- calculateTooltipSize,
- getMessageActionTooltipStyle,
-};
+export { findTooltipPosition, calculateTooltipSize, getTooltipStyle };
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 26, 9:11 PM (14 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2586307
Default Alt Text
D8826.diff (1 KB)
Attached To
Mode
D8826: [web] rename getMessageActionTooltipStyle to getTooltipStyle
Attached
Detach File
Event Timeline
Log In to Comment