Skip to content

Commit 58a0848

Browse files
committed
style/lint/couple of imports
1 parent 0d849ef commit 58a0848

4 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/components/Search/SearchContext.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ function SearchContextProvider({children}: ChildrenProps) {
217217
lastSearchType,
218218
shouldShowSelectAllMatchingItems,
219219
showSelectAllMatchingItems,
220+
areAllMatchingItemsSelected,
220221
],
221222
);
222223

src/hooks/useSelectedTransactionsActions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ function useSelectedTransactionsActions({
168168
}
169169

170170
// Gets the list of options for the export sub-menu
171-
const getExportOptions = () => {
171+
const getExportOptions = (): PopoverMenuItem[] => {
172172
// We provide the basic and expense level export options by default
173173
const exportOptions: PopoverMenuItem[] = [
174174
{

src/libs/actions/Search.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type {FormOnyxValues} from '@components/Form/types';
55
import type {PaymentData, SearchQueryJSON} from '@components/Search/types';
66
import type {TransactionListItemType, TransactionReportGroupListItemType} from '@components/SelectionList/types';
77
import * as API from '@libs/API';
8-
import type {ExportSearchItemsToCSVParams, ReportExportParams, SubmitReportParams, ExportSearchWithTemplateParams} from '@libs/API/parameters';
8+
import type {ExportSearchItemsToCSVParams, ExportSearchWithTemplateParams, ReportExportParams, SubmitReportParams} from '@libs/API/parameters';
99
import {READ_COMMANDS, SIDE_EFFECT_REQUEST_COMMANDS, WRITE_COMMANDS} from '@libs/API/types';
1010
import {getCommandURL} from '@libs/ApiUtils';
1111
import {getMicroSecondOnyxErrorWithTranslationKey} from '@libs/ErrorUtils';

src/pages/Search/SearchPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import DragAndDropConsumer from '@components/DragAndDrop/Consumer';
88
import DragAndDropProvider from '@components/DragAndDrop/Provider';
99
import DropZoneUI from '@components/DropZone/DropZoneUI';
1010
import * as Expensicons from '@components/Icon/Expensicons';
11+
import type {PopoverMenuItem} from '@components/PopoverMenu';
1112
import ScreenWrapper from '@components/ScreenWrapper';
1213
import Search from '@components/Search';
1314
import {useSearchContext} from '@components/Search/SearchContext';
@@ -83,7 +84,6 @@ function SearchPage({route}: SearchPageProps) {
8384
const [isExportWithTemplateModalVisible, setIsExportWithTemplateModalVisible] = useState(false);
8485
const queryJSON = useMemo(() => buildSearchQueryJSON(route.params.q), [route.params.q]);
8586

86-
8787
// eslint-disable-next-line rulesdir/no-default-id-values
8888
const [currentSearchResults] = useOnyx(`${ONYXKEYS.COLLECTION.SNAPSHOT}${queryJSON?.hash ?? CONST.DEFAULT_NUMBER_ID}`, {canBeMissing: true});
8989
const lastNonEmptySearchResults = useRef<SearchResults | undefined>(undefined);

0 commit comments

Comments
 (0)