From 2364a371d15f89227cdf07dcd8bb790e14bd2930 Mon Sep 17 00:00:00 2001 From: Anastasia Poupeney Date: Thu, 28 Jun 2018 10:24:29 +0200 Subject: [PATCH] lint issues fix --- .../steps/GenuineCheck/GenuineCheckUnavailable.js | 13 +++++-------- .../Onboarding/steps/GenuineCheck/index.js | 7 +------ src/components/Onboarding/steps/SetPassword.js | 1 - src/middlewares/analytics.js | 2 +- 4 files changed, 7 insertions(+), 16 deletions(-) diff --git a/src/components/Onboarding/steps/GenuineCheck/GenuineCheckUnavailable.js b/src/components/Onboarding/steps/GenuineCheck/GenuineCheckUnavailable.js index 11d639cd..3ae20b72 100644 --- a/src/components/Onboarding/steps/GenuineCheck/GenuineCheckUnavailable.js +++ b/src/components/Onboarding/steps/GenuineCheck/GenuineCheckUnavailable.js @@ -11,7 +11,6 @@ import IconCross from 'icons/Cross' import Box from 'components/base/Box' import Button from 'components/base/Button' import TranslatedError from 'components/TranslatedError' -import Track from 'analytics/Track' import { track } from 'analytics/segment' import { OnboardingFooterWrapper } from '../../helperComponents' @@ -20,12 +19,10 @@ export function GenuineCheckUnavailableFooter({ prevStep, nextStep, t, - onboarding, }: { prevStep: () => void, nextStep: () => void, t: T, - onboarding: OnboardingState, }) { return ( @@ -66,11 +63,11 @@ export function GenuineCheckUnavailableMessage({ fontSize={4} underline onClick={() => { - handleOpenGenuineCheckModal(), - track('Genuine Check Unavailable Retry', { - flowType: onboarding.flowType, - deviceType: onboarding.isLedgerNano ? 'Nano S' : 'Blue', - }) + handleOpenGenuineCheckModal() + track('Genuine Check Unavailable Retry', { + flowType: onboarding.flowType, + deviceType: onboarding.isLedgerNano ? 'Nano S' : 'Blue', + }) }} > {t('app:common.retry')} diff --git a/src/components/Onboarding/steps/GenuineCheck/index.js b/src/components/Onboarding/steps/GenuineCheck/index.js index dcffcb84..a599d720 100644 --- a/src/components/Onboarding/steps/GenuineCheck/index.js +++ b/src/components/Onboarding/steps/GenuineCheck/index.js @@ -259,12 +259,7 @@ class GenuineCheck extends PureComponent { {genuine.genuineCheckUnavailable ? ( - + ) : ( { event="Skip Password Onboarding" onClick={() => nextStep()} disabled={false} - onClick={() => nextStep()} mx={2} > {t('app:common.skipThisStep')} diff --git a/src/middlewares/analytics.js b/src/middlewares/analytics.js index 37810eff..d0fe66e6 100644 --- a/src/middlewares/analytics.js +++ b/src/middlewares/analytics.js @@ -12,7 +12,7 @@ export default store => next => action => { if (shareAnalytics) { start(store) } else { - //TODO add user uuid + // TODO add user uuid track('Stopping Analytics') stop() }