Skip to content

Commit

Permalink
run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
brunovjk committed Apr 16, 2024
1 parent 2527d67 commit 0a4a1a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/pages/RoomInvitePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ type RoomInvitePageOnyxProps = {
/** Whether or not we are searching for reports on the server */
isSearchingForReports: OnyxEntry<boolean>;
};
type RoomInvitePageProps = WithReportOrNotFoundProps & WithNavigationTransitionEndProps & RoomInvitePageOnyxProps & StackScreenProps<RoomInviteNavigatorParamList, typeof SCREENS.ROOM_INVITE_ROOT>;
type RoomInvitePageProps = WithReportOrNotFoundProps &
WithNavigationTransitionEndProps &
RoomInvitePageOnyxProps &
StackScreenProps<RoomInviteNavigatorParamList, typeof SCREENS.ROOM_INVITE_ROOT>;

type Sections = Array<SectionListData<OptionsListUtils.MemberForList, Section<OptionsListUtils.MemberForList>>>;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const propTypes = {

/** The action of the IOU, i.e. create, split, move */
action: PropTypes.oneOf(_.values(CONST.IOU.ACTION)),

/** Whether or not we are searching for reports on the server */
isSearchingForReports: PropTypes.bool,
};
Expand Down Expand Up @@ -381,7 +381,7 @@ function MoneyTemporaryForRefactorRequestParticipantsSelector({participants, onF
Report.searchInServer(debouncedSearchTerm.trim());
}, [debouncedSearchTerm]);

const isAllSectionsEmpty = _.every(sections, (section) => section.data.length === 0);
const isAllSectionsEmpty = _.every(sections, (section) => section.data.length === 0);
if ([CONST.IOU.ACTION.CATEGORIZE, CONST.IOU.ACTION.SHARE].includes(action) && isAllSectionsEmpty && didScreenTransitionEnd && searchTerm.trim() === '') {
return renderEmptyWorkspaceView();
}
Expand Down

0 comments on commit 0a4a1a8

Please sign in to comment.