Gaëtan Renaudeau
6 years ago
No known key found for this signature in database
GPG Key ID: 7B66B85F042E5451
3 changed files with
6 additions and
11 deletions
-
src/api/network.js
-
src/components/EnsureDeviceApp.js
-
src/components/SettingsPage/sections/Help.js
|
|
@ -3,11 +3,7 @@ import axios from 'axios' |
|
|
|
import { GET_CALLS_RETRY, GET_CALLS_TIMEOUT } from 'config/constants' |
|
|
|
import { retry } from 'helpers/promise' |
|
|
|
import logger from 'logger' |
|
|
|
import { |
|
|
|
LedgerAPIErrorWithMessage, |
|
|
|
LedgerAPIError, |
|
|
|
NetworkDown, |
|
|
|
} from '@ledgerhq/errors' |
|
|
|
import { LedgerAPIErrorWithMessage, LedgerAPIError, NetworkDown } from '@ledgerhq/errors' |
|
|
|
import anonymizer from 'helpers/anonymizer' |
|
|
|
|
|
|
|
const userFriendlyError = <A>(p: Promise<A>, { url, method, startTime, ...rest }): Promise<A> => |
|
|
|
|
|
@ -23,11 +23,7 @@ import IconUsb from 'icons/Usb' |
|
|
|
|
|
|
|
import type { Device } from 'types/common' |
|
|
|
|
|
|
|
import { |
|
|
|
WrongDeviceForAccount, |
|
|
|
CantOpenDevice, |
|
|
|
UpdateYourApp, |
|
|
|
} from '@ledgerhq/errors' |
|
|
|
import { WrongDeviceForAccount, CantOpenDevice, UpdateYourApp } from '@ledgerhq/errors' |
|
|
|
import { getCurrentDevice } from 'reducers/devices' |
|
|
|
|
|
|
|
const usbIcon = <IconUsb size={16} /> |
|
|
|
|
|
@ -73,7 +73,10 @@ class SectionHelp extends PureComponent<Props> { |
|
|
|
> |
|
|
|
<ResetButton /> |
|
|
|
</Row> |
|
|
|
<Row title={t('settings.repairDevice.title')} desc={t('settings.repairDevice.descSettings')}> |
|
|
|
<Row |
|
|
|
title={t('settings.repairDevice.title')} |
|
|
|
desc={t('settings.repairDevice.descSettings')} |
|
|
|
> |
|
|
|
<RepairDeviceButton /> |
|
|
|
</Row> |
|
|
|
</Body> |
|
|
|