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 @@ , +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 @@ -16,7 +16,7 @@ import { useSelector } from '../redux/redux-utils'; import { updateNavInfoActionType } from '../types/nav-types'; import { InlineSidebar } from './inline-sidebar.react'; -import MessageActionTooltip from './message-action-buttons'; +import MessageActionButtons from './message-action-buttons'; import type { MessagePositionInfo, OnMessagePositionWithContainerInfo, @@ -66,12 +66,10 @@ sidebarExistsOrCanBeCreated ) { messageActionTooltip = ( - );