From 398e158b4cee11524b46acd12ec08203fdada78c Mon Sep 17 00:00:00 2001 From: Wojciech Boman Date: Tue, 25 Jun 2024 13:36:57 +0200 Subject: [PATCH] Fix lint and ts in PromotedActionsBar --- src/components/PromotedActionsBar.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/PromotedActionsBar.tsx b/src/components/PromotedActionsBar.tsx index 98ab1eaf5539..1aefe941011b 100644 --- a/src/components/PromotedActionsBar.tsx +++ b/src/components/PromotedActionsBar.tsx @@ -7,7 +7,7 @@ import * as HeaderUtils from '@libs/HeaderUtils'; import * as Localize from '@libs/Localize'; import getTopmostCentralPaneRoute from '@libs/Navigation/getTopmostCentralPaneRoute'; import Navigation, {navigationRef} from '@libs/Navigation/Navigation'; -import type {CentralPaneNavigatorParamList, RootStackParamList, State} from '@libs/Navigation/types'; +import type {AuthScreensParamList, RootStackParamList, State} from '@libs/Navigation/types'; import * as ReportUtils from '@libs/ReportUtils'; import * as ReportActions from '@userActions/Report'; import * as Session from '@userActions/Session'; @@ -80,7 +80,7 @@ const PromotedActions = { return; } - const currentQuery = topmostCentralPaneRoute?.params as CentralPaneNavigatorParamList['Search_Central_Pane']; + const currentQuery = topmostCentralPaneRoute?.params as AuthScreensParamList['Search_Central_Pane']; ReportUtils.changeMoneyRequestHoldStatus(reportAction, ROUTES.SEARCH_REPORT.getRoute(currentQuery?.query ?? CONST.SEARCH.TAB.ALL, reportAction?.childReportID ?? '')); }, }),