File tree 4 files changed +8
-2
lines changed
4 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -176,6 +176,7 @@ function IOURequestStartPage({
176
176
< IOURequestStepScan
177
177
route = { route }
178
178
navigation = { navigation }
179
+ isTooltipAllowed
179
180
/>
180
181
</ TabScreenWithFocusTrapWrapper >
181
182
) }
Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ function IOURequestStepScan({
78
78
} ,
79
79
transaction,
80
80
currentUserPersonalDetails,
81
+ isTooltipAllowed = false ,
81
82
} : IOURequestStepScanProps ) {
82
83
const theme = useTheme ( ) ;
83
84
const styles = useThemeStyles ( ) ;
@@ -544,7 +545,7 @@ function IOURequestStepScan({
544
545
545
546
const { shouldShowProductTrainingTooltip, renderProductTrainingTooltip} = useProductTrainingContext (
546
547
CONST . PRODUCT_TRAINING_TOOLTIP_NAMES . SCAN_TEST_TOOLTIP ,
547
- ! getIsUserSubmittedExpenseOrScannedReceipt ( ) && Permissions . canUseManagerMcTest ( betas ) && isTabActive && ! isUserInvitedToWorkspace ( ) ,
548
+ isTooltipAllowed && ! getIsUserSubmittedExpenseOrScannedReceipt ( ) && Permissions . canUseManagerMcTest ( betas ) && isTabActive && ! isUserInvitedToWorkspace ( ) ,
548
549
{
549
550
onConfirm : setTestReceiptAndNavigate ,
550
551
onDismiss : ( ) => {
Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ function IOURequestStepScan({
84
84
} ,
85
85
transaction,
86
86
currentUserPersonalDetails,
87
+ isTooltipAllowed = false ,
87
88
} : Omit < IOURequestStepScanProps , 'user' > ) {
88
89
const theme = useTheme ( ) ;
89
90
const styles = useThemeStyles ( ) ;
@@ -604,7 +605,7 @@ function IOURequestStepScan({
604
605
605
606
const { shouldShowProductTrainingTooltip, renderProductTrainingTooltip} = useProductTrainingContext (
606
607
CONST . PRODUCT_TRAINING_TOOLTIP_NAMES . SCAN_TEST_TOOLTIP ,
607
- ! getIsUserSubmittedExpenseOrScannedReceipt ( ) && Permissions . canUseManagerMcTest ( betas ) && isTabActive && ! isUserInvitedToWorkspace ( ) ,
608
+ isTooltipAllowed && ! getIsUserSubmittedExpenseOrScannedReceipt ( ) && Permissions . canUseManagerMcTest ( betas ) && isTabActive && ! isUserInvitedToWorkspace ( ) ,
608
609
{
609
610
onConfirm : setTestReceiptAndNavigate ,
610
611
onDismiss : ( ) => {
Original file line number Diff line number Diff line change @@ -8,6 +8,9 @@ type IOURequestStepScanProps = WithCurrentUserPersonalDetailsProps &
8
8
WithWritableReportOrNotFoundProps < typeof SCREENS . MONEY_REQUEST . STEP_SCAN | typeof SCREENS . MONEY_REQUEST . CREATE > & {
9
9
/** Holds data related to Money Request view state, rather than the underlying Money Request data. */
10
10
transaction : OnyxEntry < OnyxTypes . Transaction > ;
11
+
12
+ /* If the tooltip is allowed to be shown */
13
+ isTooltipAllowed ?: boolean ;
11
14
} ;
12
15
13
16
export default IOURequestStepScanProps ;
You can’t perform that action at this time.
0 commit comments