|
1 | 1 | import React, {useState} from 'react'; |
2 | 2 | import {View} from 'react-native'; |
3 | | -import Button from '@components/Button'; |
4 | | -import FixedFooter from '@components/FixedFooter'; |
5 | | -import HeaderWithBackButton from '@components/HeaderWithBackButton'; |
6 | | -import Icon from '@components/Icon'; |
7 | | -import Modal from '@components/Modal'; |
8 | | -import type {ModalProps} from '@components/Modal/Global/ModalContext'; |
9 | | -import PressableWithoutFeedback from '@components/Pressable/PressableWithoutFeedback'; |
10 | | -import ScrollView from '@components/ScrollView'; |
11 | | -import Text from '@components/Text'; |
12 | 3 | import {useMemoizedLazyExpensifyIcons, useMemoizedLazyIllustrations} from '@hooks/useLazyAsset'; |
13 | 4 | import useLocalize from '@hooks/useLocalize'; |
14 | 5 | import useTheme from '@hooks/useTheme'; |
15 | 6 | import useThemeStyles from '@hooks/useThemeStyles'; |
16 | 7 | import type {GustoSyncResult} from '@libs/API/GustoSyncResult'; |
17 | 8 | import CONST from '@src/CONST'; |
| 9 | +import Button from './Button'; |
| 10 | +import FixedFooter from './FixedFooter'; |
| 11 | +import HeaderWithBackButton from './HeaderWithBackButton'; |
| 12 | +import Icon from './Icon'; |
| 13 | +import Modal from './Modal'; |
| 14 | +import type {ModalProps} from './Modal/Global/ModalContext'; |
| 15 | +import PressableWithoutFeedback from './Pressable/PressableWithoutFeedback'; |
| 16 | +import ScrollView from './ScrollView'; |
| 17 | +import Text from './Text'; |
18 | 18 |
|
19 | 19 | type GustoSyncResultsModalProps = ModalProps & { |
20 | 20 | /** Sync result returned by the completed Gusto sync job */ |
@@ -57,19 +57,20 @@ function GustoSyncResultsModal({result, closeModal}: GustoSyncResultsModalProps) |
57 | 57 | title={translate('workspace.hr.gusto.syncResults.title')} |
58 | 58 | onBackButtonPress={closeResultsModal} |
59 | 59 | /> |
60 | | - <ScrollView contentContainerStyle={[styles.flexGrow1, styles.ph5]}> |
61 | | - <View style={[styles.alignItemsCenter, styles.mt8, styles.mb8, styles.pRelative]}> |
| 60 | + <ScrollView contentContainerStyle={[styles.flexGrow1, styles.ph5, styles.pb8]}> |
| 61 | + <View style={[styles.alignItemsCenter, styles.mt4, styles.mb4, styles.pRelative]}> |
62 | 62 | <Icon |
63 | 63 | src={illustrations.SyncUsers} |
64 | | - width={88} |
65 | | - height={88} |
| 64 | + width={68} |
| 65 | + height={68} |
66 | 66 | /> |
67 | 67 | </View> |
68 | 68 | <Text style={[styles.textHeadlineH1, styles.mb8]}>{translate('workspace.hr.gusto.syncResults.successTitle')}</Text> |
69 | 69 | {renderResultSummary(translate('workspace.hr.gusto.syncResults.added'), addedCount)} |
70 | 70 | {renderResultSummary(translate('workspace.hr.gusto.syncResults.removed'), removedCount)} |
71 | 71 | <PressableWithoutFeedback |
72 | 72 | accessibilityLabel={translate('workspace.hr.gusto.syncResults.skipped')} |
| 73 | + sentryLabel="GustoSyncResultsModal-SkippedEmployees" |
73 | 74 | role={CONST.ROLE.BUTTON} |
74 | 75 | onPress={() => setIsSkippedSectionExpanded((isExpanded) => !isExpanded)} |
75 | 76 | style={[styles.flexRow, styles.justifyContentBetween, styles.alignItemsCenter]} |
|
0 commit comments