Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions src/CONST/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8290,9 +8290,6 @@ const CONST = {
SIGN_UP: 'sign_up',
WORKSPACE_CREATED: 'workspace_created',
PAID_ADOPTION: 'paid_adoption',
PRODUCT_TRAINING_SCAN_TEST_TOOLTIP_SHOWN: 'product_training_scan_test_tooltip_shown',
PRODUCT_TRAINING_SCAN_TEST_TOOLTIP_DISMISSED: 'product_training_scan_test_tooltip_dismissed',
PRODUCT_TRAINING_SCAN_TEST_TOOLTIP_CONFIRMED: 'product_training_scan_test_tooltip_confirmed',
},
},

Expand Down
12 changes: 1 addition & 11 deletions src/components/ProductTrainingContext/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,6 @@ type ProductTrainingContextConfig = {
* Callback to be called when the tooltip is confirmed
*/
onConfirm?: () => void;

/**
* Callback to be called when the tooltip is shown
*/
onShown?: () => void;
};

const ProductTrainingContext = createContext<ProductTrainingContextType>({
Expand Down Expand Up @@ -273,12 +268,8 @@ const useProductTrainingContext = (tooltipName: ProductTrainingTooltipName, shou

const renderProductTrainingTooltip = useCallback(() => {
const tooltip = TOOLTIPS[tooltipName];

return (
<View
fsClass={CONST.FULLSTORY.CLASS.UNMASK}
onLayout={config.onShown}
>
<View fsClass={CONST.FULLSTORY.CLASS.UNMASK}>
<View
style={[
styles.alignItemsCenter,
Expand Down Expand Up @@ -354,7 +345,6 @@ const useProductTrainingContext = (tooltipName: ProductTrainingTooltipName, shou
theme.tooltipHighlightText,
theme.icon,
translate,
config.onShown,
config.onConfirm,
config.onDismiss,
hideTooltip,
Expand Down
7 changes: 0 additions & 7 deletions src/pages/iou/request/IOURequestStartPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import {canUseTouchScreen} from '@libs/DeviceCapabilities';
import getNonEmptyStringOnyxID from '@libs/getNonEmptyStringOnyxID';
import getPlatform from '@libs/getPlatform';
import type Platform from '@libs/getPlatform/types';
import GoogleTagManager from '@libs/GoogleTagManager';
import Navigation from '@libs/Navigation/Navigation';
import OnyxTabNavigator, {TabScreenWithFocusTrapWrapper, TopTab} from '@libs/Navigation/OnyxTabNavigator';
import {
Expand Down Expand Up @@ -80,7 +79,6 @@ function IOURequestStartPage({
}: IOURequestStartPageProps) {
const styles = useThemeStyles();
const {translate} = useLocalize();
const {accountID} = useCurrentUserPersonalDetails();
const shouldUseTab = iouType !== CONST.IOU.TYPE.SEND && iouType !== CONST.IOU.TYPE.PAY && iouType !== CONST.IOU.TYPE.INVOICE;
const personalPolicy = usePersonalPolicy();
const [report] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT}${reportID}`);
Expand Down Expand Up @@ -264,16 +262,11 @@ function IOURequestStartPage({
// The test receipt image is served via our server on web so it requires internet connection
!hasUserSubmittedExpenseOrScannedReceipt && isBetaEnabled(CONST.BETAS.NEWDOT_MANAGER_MCTEST) && selectedTab === CONST.TAB_REQUEST.SCAN && !(isOffline && isWeb),
{
onShown: () => {
GoogleTagManager.publishEvent(CONST.ANALYTICS.EVENT.PRODUCT_TRAINING_SCAN_TEST_TOOLTIP_SHOWN, accountID);
},
onConfirm: () => {
setTestReceiptAndNavigateRef?.current?.();
GoogleTagManager.publishEvent(CONST.ANALYTICS.EVENT.PRODUCT_TRAINING_SCAN_TEST_TOOLTIP_CONFIRMED, accountID);
},
onDismiss: () => {
dismissProductTraining(CONST.PRODUCT_TRAINING_TOOLTIP_NAMES.SCAN_TEST_TOOLTIP, true);
GoogleTagManager.publishEvent(CONST.ANALYTICS.EVENT.PRODUCT_TRAINING_SCAN_TEST_TOOLTIP_DISMISSED, accountID);
},
},
);
Expand Down
Loading