From 5647eab2318f29fd7d592ea710c3c6072e1763d9 Mon Sep 17 00:00:00 2001 From: situchan Date: Tue, 27 Jun 2023 23:22:17 +0100 Subject: [PATCH] fix missing tooltip on hover of X button while edit message --- .../report/ReportActionItemMessageEdit.js | 40 +++++++++---------- 1 file changed, 19 insertions(+), 21 deletions(-) diff --git a/src/pages/home/report/ReportActionItemMessageEdit.js b/src/pages/home/report/ReportActionItemMessageEdit.js index 0d9870c1353c..eb7c318c8424 100644 --- a/src/pages/home/report/ReportActionItemMessageEdit.js +++ b/src/pages/home/report/ReportActionItemMessageEdit.js @@ -28,7 +28,7 @@ import * as ComposerUtils from '../../../libs/ComposerUtils'; import * as ComposerActions from '../../../libs/actions/Composer'; import * as User from '../../../libs/actions/User'; import PressableWithFeedback from '../../../components/Pressable/PressableWithFeedback'; -import Hoverable from '../../../components/Hoverable'; +import getButtonState from '../../../libs/getButtonState'; import useLocalize from '../../../hooks/useLocalize'; import useKeyboardState from '../../../hooks/useKeyboardState'; import useWindowDimensions from '../../../hooks/useWindowDimensions'; @@ -255,27 +255,25 @@ function ReportActionItemMessageEdit(props) { - - {(hovered) => ( - - - + + {({hovered, pressed}) => ( + )} - +