Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3299578
D3311.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D3311.diff
View Options
diff --git a/web/chat/composed-message.react.js b/web/chat/composed-message.react.js
--- a/web/chat/composed-message.react.js
+++ b/web/chat/composed-message.react.js
@@ -132,9 +132,6 @@
<MessageActionButtons
threadInfo={threadInfo}
item={item}
- containerPosition={
- this.props.mouseOverMessagePosition.containerPosition
- }
availableTooltipPositions={availableTooltipPositions}
setMouseOverMessagePosition={this.props.setMouseOverMessagePosition}
mouseOverMessagePosition={this.props.mouseOverMessagePosition}
diff --git a/web/chat/message-action-buttons.js b/web/chat/message-action-buttons.js
--- a/web/chat/message-action-buttons.js
+++ b/web/chat/message-action-buttons.js
@@ -20,7 +20,6 @@
ItemAndContainerPositionInfo,
MessagePositionInfo,
OnMessagePositionWithContainerInfo,
- PositionInfo,
} from './position-types';
import { tooltipPositions, type TooltipPosition } from './tooltip-utils';
import {
@@ -37,12 +36,11 @@
type MessageActionButtonsProps = {
+threadInfo: ThreadInfo,
+item: ChatMessageInfoItem,
- +containerPosition: PositionInfo,
+availableTooltipPositions: $ReadOnlyArray<TooltipPosition>,
+setMouseOverMessagePosition?: (
messagePositionInfo: MessagePositionInfo,
) => void,
- +mouseOverMessagePosition?: OnMessagePositionWithContainerInfo,
+ +mouseOverMessagePosition: OnMessagePositionWithContainerInfo,
+canReply?: boolean,
+inputState?: ?InputState,
};
@@ -50,7 +48,6 @@
const {
threadInfo,
item,
- containerPosition,
availableTooltipPositions,
setMouseOverMessagePosition,
mouseOverMessagePosition,
@@ -58,6 +55,8 @@
inputState,
} = props;
+ const { containerPosition } = mouseOverMessagePosition;
+
const [tooltipVisible, setTooltipVisible] = React.useState(false);
const [pointingTo, setPointingTo] = React.useState();
diff --git a/web/chat/robotext-message.react.js b/web/chat/robotext-message.react.js
--- a/web/chat/robotext-message.react.js
+++ b/web/chat/robotext-message.react.js
@@ -69,9 +69,7 @@
<MessageActionButtons
threadInfo={threadInfo}
item={item}
- containerPosition={
- this.props.mouseOverMessagePosition.containerPosition
- }
+ mouseOverMessagePosition={this.props.mouseOverMessagePosition}
availableTooltipPositions={availableTooltipPositionsForRobotext}
/>
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 18, 1:46 PM (21 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2535008
Default Alt Text
D3311.diff (2 KB)
Attached To
Mode
D3311: [web] Remove extraneous `containerPosition` prop from `MessageActionButtons`
Attached
Detach File
Event Timeline
Log In to Comment