Skip to content

Commit b60150a

Browse files
committed
style/lint/naming
1 parent 912b306 commit b60150a

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

src/components/MoneyReportHeader.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ function MoneyReportHeader({
190190
const [isUnapproveModalVisible, setIsUnapproveModalVisible] = useState(false);
191191
const [isReopenWarningModalVisible, setIsReopenWarningModalVisible] = useState(false);
192192
const [isPDFModalVisible, setIsPDFModalVisible] = useState(false);
193-
const [isExportModalVisible, setIsExportModalVisible] = useState(false);
193+
const [isExportWithTemplateModalVisible, setIsExportWithTemplateModalVisible] = useState(false);
194194

195195
const [exportModalStatus, setExportModalStatus] = useState<ExportType | null>(null);
196196

@@ -260,7 +260,7 @@ function MoneyReportHeader({
260260
return;
261261
}
262262

263-
setIsExportModalVisible(true);
263+
setIsExportWithTemplateModalVisible(true);
264264
queueExportSearchWithTemplate({
265265
templateName,
266266
templateType,
@@ -1259,8 +1259,8 @@ function MoneyReportHeader({
12591259
</View>
12601260
</Modal>
12611261
<ConfirmModal
1262-
onConfirm={() => setIsExportModalVisible(false)}
1263-
isVisible={isExportModalVisible}
1262+
onConfirm={() => setIsExportWithTemplateModalVisible(false)}
1263+
isVisible={isExportWithTemplateModalVisible}
12641264
title={translate('export.exportInProgress')}
12651265
prompt={translate('export.conciergeWillSend')}
12661266
confirmText={translate('common.buttonConfirm')}

src/hooks/useSelectedTransactionsActions.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import {useCallback, useMemo, useState} from 'react';
22
import {useOnyx} from 'react-native-onyx';
33
import * as Expensicons from '@components/Icon/Expensicons';
4+
import type {PopoverMenuItem} from '@components/PopoverMenu';
45
import {useSearchContext} from '@components/Search/SearchContext';
56
import {deleteMoneyRequest, unholdRequest} from '@libs/actions/IOU';
67
import {turnOffMobileSelectionMode} from '@libs/actions/MobileSelectionMode';
@@ -24,7 +25,6 @@ import ROUTES from '@src/ROUTES';
2425
import type {OriginalMessageIOU, Report, ReportAction, Session, Transaction} from '@src/types/onyx';
2526
import useLocalize from './useLocalize';
2627
import useReportIsArchived from './useReportIsArchived';
27-
import { PopoverMenuItem } from '@components/PopoverMenu';
2828

2929
// We do not use PRIMARY_REPORT_ACTIONS or SECONDARY_REPORT_ACTIONS because they weren't meant to be used in this situation. `value` property of returned options is later ignored.
3030
const HOLD = 'HOLD';
@@ -201,7 +201,7 @@ function useSelectedTransactionsActions({
201201
}
202202

203203
return exportOptions;
204-
}
204+
};
205205

206206
options.push({
207207
value: CONST.REPORT.SECONDARY_ACTIONS.EXPORT,
@@ -267,6 +267,7 @@ function useSelectedTransactionsActions({
267267
showDeleteModal,
268268
isReportArchived,
269269
beginExportWithTemplate,
270+
allTransactionsLength,
270271
]);
271272

272273
return {

0 commit comments

Comments
 (0)