From a28d56c185b74e27fcc90858f2deaaff55969f20 Mon Sep 17 00:00:00 2001 From: Hans Date: Mon, 16 Oct 2023 16:17:05 +0700 Subject: [PATCH] fix hovering header menu --- src/libs/HeaderUtils.js | 3 --- src/pages/home/HeaderView.js | 7 ------- 2 files changed, 10 deletions(-) diff --git a/src/libs/HeaderUtils.js b/src/libs/HeaderUtils.js index ccc7bac3f571..16d375ea1124 100644 --- a/src/libs/HeaderUtils.js +++ b/src/libs/HeaderUtils.js @@ -1,5 +1,4 @@ import * as Localize from './Localize'; -import themeColors from '../styles/themes/default'; import * as Session from './actions/Session'; import * as Report from './actions/Report'; import * as Expensicons from '../components/Icon/Expensicons'; @@ -12,14 +11,12 @@ function getPinMenuItem(report) { if (!report.isPinned) { return { icon: Expensicons.Pin, - iconFill: themeColors.icon, text: Localize.translateLocal('common.pin'), onSelected: Session.checkIfActionIsAllowed(() => Report.togglePinnedState(report.reportID, report.isPinned)), }; } return { icon: Expensicons.Pin, - iconFill: themeColors.icon, text: Localize.translateLocal('common.unPin'), onSelected: Session.checkIfActionIsAllowed(() => Report.togglePinnedState(report.reportID, report.isPinned)), }; diff --git a/src/pages/home/HeaderView.js b/src/pages/home/HeaderView.js index fc913fb201e0..d7f8c3605564 100644 --- a/src/pages/home/HeaderView.js +++ b/src/pages/home/HeaderView.js @@ -100,7 +100,6 @@ function HeaderView(props) { if (ReportUtils.isCompletedTaskReport(props.report) && canModifyTask) { threeDotMenuItems.push({ icon: Expensicons.Checkmark, - iconFill: themeColors.icon, text: props.translate('task.markAsIncomplete'), onSelected: () => Task.reopenTask(props.report), }); @@ -110,7 +109,6 @@ function HeaderView(props) { if (props.report.stateNum !== CONST.REPORT.STATE_NUM.SUBMITTED && props.report.statusNum !== CONST.REPORT.STATUS.CLOSED && canModifyTask) { threeDotMenuItems.push({ icon: Expensicons.Trashcan, - iconFill: themeColors.icon, text: props.translate('common.cancel'), onSelected: () => Task.cancelTask(props.report.reportID, props.report.reportName, props.report.stateNum, props.report.statusNum), }); @@ -121,14 +119,12 @@ function HeaderView(props) { if (props.report.notificationPreference === CONST.REPORT.NOTIFICATION_PREFERENCE.HIDDEN) { threeDotMenuItems.push({ icon: Expensicons.ChatBubbles, - iconFill: themeColors.icon, text: props.translate('common.joinThread'), onSelected: () => Report.updateNotificationPreference(props.report.reportID, props.report.notificationPreference, CONST.REPORT.NOTIFICATION_PREFERENCE.ALWAYS, false), }); } else if (props.report.notificationPreference.length) { threeDotMenuItems.push({ icon: Expensicons.ChatBubbles, - iconFill: themeColors.icon, text: props.translate('common.leaveThread'), onSelected: () => Report.leaveRoom(props.report.reportID), }); @@ -140,7 +136,6 @@ function HeaderView(props) { if (isConcierge && props.guideCalendarLink) { threeDotMenuItems.push({ icon: Expensicons.Phone, - iconFill: themeColors.icon, text: props.translate('videoChatButtonAndMenu.tooltip'), onSelected: () => { Link.openExternalLink(props.guideCalendarLink); @@ -149,7 +144,6 @@ function HeaderView(props) { } else if (!isAutomatedExpensifyAccount && !isTaskReport && !isArchivedRoom) { threeDotMenuItems.push({ icon: ZoomIcon, - iconFill: themeColors.icon, text: props.translate('videoChatButtonAndMenu.zoom'), onSelected: () => { Link.openExternalLink(CONST.NEW_ZOOM_MEETING_URL); @@ -157,7 +151,6 @@ function HeaderView(props) { }); threeDotMenuItems.push({ icon: GoogleMeetIcon, - iconFill: themeColors.icon, text: props.translate('videoChatButtonAndMenu.googleMeet'), onSelected: () => { Link.openExternalLink(CONST.NEW_GOOGLE_MEET_MEETING_URL);