Skip to content

Commit

Permalink
Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
yuwenmemon committed Jun 26, 2024
1 parent 25533d8 commit 38cb30e
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions src/pages/iou/request/MoneyRequestParticipantsSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {useOptionsList} from '@components/OptionListContextProvider';
import ReferralProgramCTA from '@components/ReferralProgramCTA';
import SelectionList from '@components/SelectionList';
import InviteMemberListItem from '@components/SelectionList/InviteMemberListItem';
import {ListItem} from '@components/SelectionList/types';

Check failure on line 14 in src/pages/iou/request/MoneyRequestParticipantsSelector.tsx

View workflow job for this annotation

GitHub Actions / Run ESLint

'ListItem' is defined but never used
import useDebouncedState from '@hooks/useDebouncedState';
import useDismissedReferralBanners from '@hooks/useDismissedReferralBanners';
import useLocalize from '@hooks/useLocalize';
Expand All @@ -27,7 +28,6 @@ import type {IOUAction, IOURequestType, IOUType} from '@src/CONST';
import CONST from '@src/CONST';
import ONYXKEYS from '@src/ONYXKEYS';
import type {Participant} from '@src/types/onyx/IOU';
import {ListItem} from "@components/SelectionList/types";

type MoneyRequestParticipantsSelectorProps = {
/** Callback to request parent modal to go to next step, which should be split */
Expand Down Expand Up @@ -379,13 +379,16 @@ function MoneyRequestParticipantsSelector({participants = CONST.EMPTY_ARRAY, onF
onFinish,
]);

const onSelectRow = useCallback((item: Participant) => {
if (isIOUSplit) {
addParticipantToSelection(item);
return;
}
addSingleParticipant(item);
}, [isIOUSplit, addParticipantToSelection, addSingleParticipant]);
const onSelectRow = useCallback(
(item: Participant) => {
if (isIOUSplit) {
addParticipantToSelection(item);
return;
}
addSingleParticipant(item);
},
[isIOUSplit, addParticipantToSelection, addSingleParticipant],
);

return (
<SelectionList
Expand Down

0 comments on commit 38cb30e

Please sign in to comment.