diff --git a/src/components/modals/Receive/index.js b/src/components/modals/Receive/index.js index 52fe9c88..8e68c04e 100644 --- a/src/components/modals/Receive/index.js +++ b/src/components/modals/Receive/index.js @@ -12,6 +12,8 @@ import Track from 'analytics/Track' import type { Account } from '@ledgerhq/live-common/lib/types' import { MODAL_RECEIVE } from 'config/constants' +import { openURL } from 'helpers/linking' +import { urls } from 'config/support' import type { T, Device } from 'types/common' import type { StepProps as DefaultStepProps } from 'components/base/Stepper' @@ -56,6 +58,7 @@ export type StepProps = DefaultStepProps & { onChangeAccount: (?Account) => void, onChangeAppOpened: boolean => void, onChangeAddressVerified: (?boolean, ?Error) => void, + contactUs: () => void, } const createSteps = ({ t }: { t: T }) => [ @@ -129,7 +132,9 @@ class ReceiveModal extends PureComponent { isAddressVerified: null, isAppOpened: false, }) - + handleContactUs = () => { + openURL(urls.receiveFlowContactSupport) + } handleReset = () => this.setState({ ...INITIAL_STATE }) handleCloseModal = () => this.props.closeModal(MODAL_RECEIVE) @@ -182,6 +187,7 @@ class ReceiveModal extends PureComponent { onChangeAccount: this.handleChangeAccount, onChangeAppOpened: this.handleChangeAppOpened, onChangeAddressVerified: this.handleChangeAddressVerified, + contactUs: this.handleContactUs, } const errorSteps = verifyAddressError diff --git a/src/components/modals/Receive/steps/01-step-account.js b/src/components/modals/Receive/steps/01-step-account.js index a5b402a7..6e7fb46f 100644 --- a/src/components/modals/Receive/steps/01-step-account.js +++ b/src/components/modals/Receive/steps/01-step-account.js @@ -13,7 +13,7 @@ import type { StepProps } from '../index' export default function StepAccount({ t, account, onChangeAccount }: StepProps) { return ( - + diff --git a/src/components/modals/Receive/steps/02-step-connect-device.js b/src/components/modals/Receive/steps/02-step-connect-device.js index d5d81513..8e4fbfc7 100644 --- a/src/components/modals/Receive/steps/02-step-connect-device.js +++ b/src/components/modals/Receive/steps/02-step-connect-device.js @@ -5,6 +5,7 @@ import React from 'react' import Box from 'components/base/Box' import Button from 'components/base/Button' import EnsureDeviceApp from 'components/EnsureDeviceApp' +import TrackPage from 'analytics/TrackPage' import type { StepProps } from '../index' @@ -26,7 +27,9 @@ export function StepConnectDeviceFooter({ }: StepProps) { return ( + +