Browse Source

lint issues fix

master
Anastasia Poupeney 7 years ago
parent
commit
2364a371d1
  1. 13
      src/components/Onboarding/steps/GenuineCheck/GenuineCheckUnavailable.js
  2. 7
      src/components/Onboarding/steps/GenuineCheck/index.js
  3. 1
      src/components/Onboarding/steps/SetPassword.js
  4. 2
      src/middlewares/analytics.js

13
src/components/Onboarding/steps/GenuineCheck/GenuineCheckUnavailable.js

@ -11,7 +11,6 @@ import IconCross from 'icons/Cross'
import Box from 'components/base/Box' import Box from 'components/base/Box'
import Button from 'components/base/Button' import Button from 'components/base/Button'
import TranslatedError from 'components/TranslatedError' import TranslatedError from 'components/TranslatedError'
import Track from 'analytics/Track'
import { track } from 'analytics/segment' import { track } from 'analytics/segment'
import { OnboardingFooterWrapper } from '../../helperComponents' import { OnboardingFooterWrapper } from '../../helperComponents'
@ -20,12 +19,10 @@ export function GenuineCheckUnavailableFooter({
prevStep, prevStep,
nextStep, nextStep,
t, t,
onboarding,
}: { }: {
prevStep: () => void, prevStep: () => void,
nextStep: () => void, nextStep: () => void,
t: T, t: T,
onboarding: OnboardingState,
}) { }) {
return ( return (
<OnboardingFooterWrapper> <OnboardingFooterWrapper>
@ -66,11 +63,11 @@ export function GenuineCheckUnavailableMessage({
fontSize={4} fontSize={4}
underline underline
onClick={() => { onClick={() => {
handleOpenGenuineCheckModal(), handleOpenGenuineCheckModal()
track('Genuine Check Unavailable Retry', { track('Genuine Check Unavailable Retry', {
flowType: onboarding.flowType, flowType: onboarding.flowType,
deviceType: onboarding.isLedgerNano ? 'Nano S' : 'Blue', deviceType: onboarding.isLedgerNano ? 'Nano S' : 'Blue',
}) })
}} }}
> >
{t('app:common.retry')} {t('app:common.retry')}

7
src/components/Onboarding/steps/GenuineCheck/index.js

@ -259,12 +259,7 @@ class GenuineCheck extends PureComponent<StepProps, State> {
</Box> </Box>
</StepContainerInner> </StepContainerInner>
{genuine.genuineCheckUnavailable ? ( {genuine.genuineCheckUnavailable ? (
<GenuineCheckUnavailableFooter <GenuineCheckUnavailableFooter nextStep={nextStep} prevStep={prevStep} t={t} />
nextStep={nextStep}
prevStep={prevStep}
t={t}
onboarding={onboarding}
/>
) : ( ) : (
<OnboardingFooter <OnboardingFooter
t={t} t={t}

1
src/components/Onboarding/steps/SetPassword.js

@ -140,7 +140,6 @@ class SetPassword extends PureComponent<StepProps, State> {
event="Skip Password Onboarding" event="Skip Password Onboarding"
onClick={() => nextStep()} onClick={() => nextStep()}
disabled={false} disabled={false}
onClick={() => nextStep()}
mx={2} mx={2}
> >
{t('app:common.skipThisStep')} {t('app:common.skipThisStep')}

2
src/middlewares/analytics.js

@ -12,7 +12,7 @@ export default store => next => action => {
if (shareAnalytics) { if (shareAnalytics) {
start(store) start(store)
} else { } else {
//TODO add user uuid // TODO add user uuid
track('Stopping Analytics') track('Stopping Analytics')
stop() stop()
} }

Loading…
Cancel
Save