From fa5f5d42c5835ef8fdcd834bedd76d6ad35d03bd Mon Sep 17 00:00:00 2001 From: GandalfGwaihir Date: Wed, 29 May 2024 04:03:32 +0530 Subject: [PATCH 1/3] Fix styles --- src/pages/InviteReportParticipantsPage.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/InviteReportParticipantsPage.tsx b/src/pages/InviteReportParticipantsPage.tsx index 74bb5bec96d7..85f72f0281eb 100644 --- a/src/pages/InviteReportParticipantsPage.tsx +++ b/src/pages/InviteReportParticipantsPage.tsx @@ -199,7 +199,7 @@ function InviteReportParticipantsPage({betas, personalDetails, report, didScreen Navigation.goBack(backRoute); }} /> - + - + From 47d2391134a240b3919b938a11f3bfad689aa075 Mon Sep 17 00:00:00 2001 From: GandalfGwaihir Date: Fri, 31 May 2024 15:53:18 +0530 Subject: [PATCH 2/3] make footer component --- src/pages/InviteReportParticipantsPage.tsx | 57 ++++++++++++---------- 1 file changed, 31 insertions(+), 26 deletions(-) diff --git a/src/pages/InviteReportParticipantsPage.tsx b/src/pages/InviteReportParticipantsPage.tsx index 85f72f0281eb..6e80504c7c56 100644 --- a/src/pages/InviteReportParticipantsPage.tsx +++ b/src/pages/InviteReportParticipantsPage.tsx @@ -187,10 +187,25 @@ function InviteReportParticipantsPage({betas, personalDetails, report, didScreen return OptionsListUtils.getHeaderMessage(invitePersonalDetails.length !== 0, Boolean(userToInvite), searchValue); }, [searchTerm, userToInvite, excludedUsers, invitePersonalDetails, translate, reportName]); + const footerContent = useMemo( + () => ( + + ), + [selectedOptions.length, inviteUsers, translate, styles], + ); + return ( - - - - - - + + ); } From dc88f9da33b2ea421352ec38c048e4166a7cc743 Mon Sep 17 00:00:00 2001 From: GandalfGwaihir Date: Fri, 31 May 2024 16:01:52 +0530 Subject: [PATCH 3/3] remove view --- src/pages/InviteReportParticipantsPage.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/pages/InviteReportParticipantsPage.tsx b/src/pages/InviteReportParticipantsPage.tsx index 6e80504c7c56..1ba4ef7fc292 100644 --- a/src/pages/InviteReportParticipantsPage.tsx +++ b/src/pages/InviteReportParticipantsPage.tsx @@ -1,6 +1,5 @@ import React, {useCallback, useEffect, useMemo, useState} from 'react'; import type {SectionListData} from 'react-native'; -import {View} from 'react-native'; import type {OnyxEntry} from 'react-native-onyx'; import {withOnyx} from 'react-native-onyx'; import FormAlertWithSubmitButton from '@components/FormAlertWithSubmitButton';