Skip to content

Commit

Permalink
fix: linter and use of translation
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandremgo committed Nov 3, 2022
1 parent 281670d commit 50e8428
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@ import { TokenCurrency } from "@ledgerhq/types-cryptoassets";
import { Transaction, TransactionStatus } from "@ledgerhq/live-common/generated/types";
import { ExchangeRate, Exchange } from "@ledgerhq/live-common/exchange/swap/types";
import { getProviderName } from "@ledgerhq/live-common/exchange/swap/utils/index";
import {
WrongDeviceForAccount,
UpdateYourApp,
LockedDeviceError,
} from "@ledgerhq/errors";
import { WrongDeviceForAccount, UpdateYourApp, LockedDeviceError } from "@ledgerhq/errors";
import { LatestFirmwareVersionRequired } from "@ledgerhq/live-common/errors";
import { DeviceModelId, getDeviceModel } from "@ledgerhq/devices";
import { Device } from "@ledgerhq/live-common/hw/actions/types";
Expand Down Expand Up @@ -520,7 +516,7 @@ export const renderLockedDeviceError = ({
<ButtonContainer>
{onRetry ? (
<Button primary onClick={onRetry}>
<Trans i18nKey="common.retry" />
{t("common.retry")}
</Button>
) : null}
</ButtonContainer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@ import React, { useEffect, useState } from "react";
import { Platform, ScrollView } from "react-native";
import { useDispatch, useSelector } from "react-redux";
import styled from "styled-components/native";
import {
LockedDeviceError,
WrongDeviceForAccount,
} from "@ledgerhq/errors";
import { LockedDeviceError, WrongDeviceForAccount } from "@ledgerhq/errors";
import { TokenCurrency } from "@ledgerhq/types-cryptoassets";
import { Transaction } from "@ledgerhq/live-common/generated/types";
import { getDeviceModel } from "@ledgerhq/devices";
Expand Down

0 comments on commit 50e8428

Please sign in to comment.