Skip to content

Commit 74ac6bb

Browse files
committed
prettier & eslint
1 parent 3d6d6f6 commit 74ac6bb

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

src/hooks/useSearchHighlightAndScroll.ts

+10-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,16 @@ type UseSearchHighlightAndScroll = {
2424
/**
2525
* Hook used to trigger a search when a new transaction or report action is added and handle highlighting and scrolling.
2626
*/
27-
function useSearchHighlightAndScroll({searchResults, transactions, previousTransactions, reportActions, previousReportActions, queryJSON, offset, isOpeningReport = false}: UseSearchHighlightAndScroll) {
27+
function useSearchHighlightAndScroll({
28+
searchResults,
29+
transactions,
30+
previousTransactions,
31+
reportActions,
32+
previousReportActions,
33+
queryJSON,
34+
offset,
35+
isOpeningReport = false,
36+
}: UseSearchHighlightAndScroll) {
2837
// Ref to track if the search was triggered by this hook
2938
const triggeredByHookRef = useRef(false);
3039
const searchTriggeredRef = useRef(false);

tests/unit/useSearchHighlightAndScrollTest.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import {renderHook} from '@testing-library/react-native';
33
import useSearchHighlightAndScroll from '@hooks/useSearchHighlightAndScroll';
44
import type {UseSearchHighlightAndScroll} from '@hooks/useSearchHighlightAndScroll';
5-
import { search } from '@libs/actions/Search';
5+
import {search} from '@libs/actions/Search';
66

77
jest.mock('@libs/actions/Search');
88
jest.mock('@src/components/ConfirmedRoute.tsx');

0 commit comments

Comments
 (0)