File tree 3 files changed +6
-2
lines changed
components/Attachments/AttachmentView
pages/workspace/accounting/qbo/export
3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -5,3 +5,4 @@ self-hosted-runner:
5
5
- macos-13-large
6
6
- macos-13-xlarge
7
7
- ubuntu-latest-reassure-tests
8
+ - macos-12
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import Text from '@components/Text';
14
14
import { usePlaybackContext } from '@components/VideoPlayerContexts/PlaybackContext' ;
15
15
import useLocalize from '@hooks/useLocalize' ;
16
16
import useNetwork from '@hooks/useNetwork' ;
17
+ import useStyledSafeAreaInsets from '@hooks/useStyledSafeAreaInsets' ;
17
18
import useStyleUtils from '@hooks/useStyleUtils' ;
18
19
import useTheme from '@hooks/useTheme' ;
19
20
import useThemeStyles from '@hooks/useThemeStyles' ;
@@ -111,6 +112,7 @@ function AttachmentView({
111
112
const attachmentCarouselPagerContext = useContext ( AttachmentCarouselPagerContext ) ;
112
113
113
114
const theme = useTheme ( ) ;
115
+ const { safeAreaPaddingBottomStyle} = useStyledSafeAreaInsets ( ) ;
114
116
const styles = useThemeStyles ( ) ;
115
117
const StyleUtils = useStyleUtils ( ) ;
116
118
const [ loadComplete , setLoadComplete ] = useState ( false ) ;
@@ -281,7 +283,7 @@ function AttachmentView({
281
283
} }
282
284
/>
283
285
</ View >
284
- { isHighResolution && < HighResolutionInfo isUploaded = { isUploaded } /> }
286
+ < View style = { safeAreaPaddingBottomStyle } > { isHighResolution && < HighResolutionInfo isUploaded = { isUploaded } /> } </ View >
285
287
</ >
286
288
) ;
287
289
}
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import ROUTES from '@src/ROUTES';
19
19
function QuickbooksCompanyCardExpenseAccountPage ( { policy} : WithPolicyConnectionsProps ) {
20
20
const { translate} = useLocalize ( ) ;
21
21
const styles = useThemeStyles ( ) ;
22
- const policyID = policy ?. id ?? '-1' ;
22
+ const policyID = policy ?. id ?? ` ${ CONST . DEFAULT_NUMBER_ID } ` ;
23
23
const qboConfig = policy ?. connections ?. quickbooksOnline ?. config ;
24
24
const { vendors} = policy ?. connections ?. quickbooksOnline ?. data ?? { } ;
25
25
const nonReimbursableBillDefaultVendorObject = vendors ?. find ( ( vendor ) => vendor . id === qboConfig ?. nonReimbursableBillDefaultVendor ) ;
@@ -73,6 +73,7 @@ function QuickbooksCompanyCardExpenseAccountPage({policy}: WithPolicyConnections
73
73
switchAccessibilityLabel = { translate ( 'workspace.qbo.defaultVendorDescription' ) }
74
74
wrapperStyle = { [ styles . ph5 , styles . mb3 , styles . mt1 ] }
75
75
isActive = { ! ! qboConfig ?. autoCreateVendor }
76
+ shouldPlaceSubtitleBelowSwitch
76
77
pendingAction = { PolicyUtils . settingsPendingAction ( [ CONST . QUICKBOOKS_CONFIG . AUTO_CREATE_VENDOR ] , qboConfig ?. pendingFields ) }
77
78
errors = { ErrorUtils . getLatestErrorField ( qboConfig , CONST . QUICKBOOKS_CONFIG . AUTO_CREATE_VENDOR ) }
78
79
onToggle = { ( isOn ) =>
You can’t perform that action at this time.
0 commit comments