Skip to content

Commit 51bcb75

Browse files
committed
Fix Gusto sync results modal
1 parent 684f5e1 commit 51bcb75

3 files changed

Lines changed: 11 additions & 18 deletions

File tree

Lines changed: 1 addition & 0 deletions
Loading

src/components/GustoSyncResultsModal.tsx

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import Icon from '@components/Icon';
77
import Modal from '@components/Modal';
88
import type {ModalProps} from '@components/Modal/Global/ModalContext';
99
import PressableWithoutFeedback from '@components/Pressable/PressableWithoutFeedback';
10-
import ScreenWrapper from '@components/ScreenWrapper';
1110
import ScrollView from '@components/ScrollView';
1211
import Text from '@components/Text';
1312
import {useMemoizedLazyExpensifyIcons, useMemoizedLazyIllustrations} from '@hooks/useLazyAsset';
@@ -24,10 +23,10 @@ type GustoSyncResultsModalProps = ModalProps & {
2423

2524
function GustoSyncResultsModal({result, closeModal}: GustoSyncResultsModalProps) {
2625
const {translate} = useLocalize();
27-
const styles = useThemeStyles();
2826
const theme = useTheme();
29-
const icons = useMemoizedLazyExpensifyIcons(['DownArrow', 'Sync']);
30-
const illustrations = useMemoizedLazyIllustrations(['NewUser']);
27+
const styles = useThemeStyles();
28+
const icons = useMemoizedLazyExpensifyIcons(['DownArrow']);
29+
const illustrations = useMemoizedLazyIllustrations(['SyncUsers']);
3130
const [isSkippedSectionExpanded, setIsSkippedSectionExpanded] = useState(false);
3231

3332
const addedCount = result.addedEmployeesCount ?? 0;
@@ -50,10 +49,9 @@ function GustoSyncResultsModal({result, closeModal}: GustoSyncResultsModalProps)
5049
shouldHandleNavigationBack
5150
enableEdgeToEdgeBottomSafeAreaPadding
5251
>
53-
<ScreenWrapper
54-
includePaddingTop={false}
55-
enableEdgeToEdgeBottomSafeAreaPadding
52+
<View
5653
testID="GustoSyncResultsModal"
54+
style={[styles.flex1, styles.appBG]}
5755
>
5856
<HeaderWithBackButton
5957
title={translate('workspace.hr.gusto.syncResults.title')}
@@ -62,18 +60,10 @@ function GustoSyncResultsModal({result, closeModal}: GustoSyncResultsModalProps)
6260
<ScrollView contentContainerStyle={[styles.flexGrow1, styles.ph5]}>
6361
<View style={[styles.alignItemsCenter, styles.mt8, styles.mb8, styles.pRelative]}>
6462
<Icon
65-
src={illustrations.NewUser}
63+
src={illustrations.SyncUsers}
6664
width={88}
6765
height={88}
6866
/>
69-
<View style={[styles.pAbsolute, styles.rn3, styles.b0]}>
70-
<Icon
71-
src={icons.Sync}
72-
fill={theme.success}
73-
width={36}
74-
height={36}
75-
/>
76-
</View>
7767
</View>
7868
<Text style={[styles.textHeadlineH1, styles.mb8]}>{translate('workspace.hr.gusto.syncResults.successTitle')}</Text>
7969
{renderResultSummary(translate('workspace.hr.gusto.syncResults.added'), addedCount)}
@@ -105,15 +95,15 @@ function GustoSyncResultsModal({result, closeModal}: GustoSyncResultsModalProps)
10595
</View>
10696
))}
10797
</ScrollView>
108-
<FixedFooter>
98+
<FixedFooter addBottomSafeAreaPadding>
10999
<Button
110100
large
111101
success
112102
text={translate('common.buttonConfirm')}
113103
onPress={closeResultsModal}
114104
/>
115105
</FixedFooter>
116-
</ScreenWrapper>
106+
</View>
117107
</Modal>
118108
);
119109
}

src/components/Icon/chunks/illustrations.chunk.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ import Stopwatch from '@assets/images/simple-illustrations/simple-illustration__
185185
import SubscriptionAnnual from '@assets/images/simple-illustrations/simple-illustration__subscription-annual.svg';
186186
import SubscriptionPPU from '@assets/images/simple-illustrations/simple-illustration__subscription-ppu.svg';
187187
import Sunglasses from '@assets/images/simple-illustrations/simple-illustration__sunglasses.svg';
188+
import SyncUsers from '@assets/images/simple-illustrations/simple-illustration__syncusers.svg';
188189
import Tag from '@assets/images/simple-illustrations/simple-illustration__tag.svg';
189190
import Target from '@assets/images/simple-illustrations/simple-illustration__target.svg';
190191
import TeachersUnite from '@assets/images/simple-illustrations/simple-illustration__teachers-unite.svg';
@@ -389,6 +390,7 @@ const Illustrations = {
389390
LockOpen,
390391
Mailbox,
391392
NewUser,
393+
SyncUsers,
392394
ShieldYellow,
393395
Clock,
394396
Members,

0 commit comments

Comments
 (0)