Skip to content

Commit

Permalink
fix: linter
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandremgo committed Aug 8, 2023
1 parent 8dca6e7 commit 7ac8eed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
9 changes: 1 addition & 8 deletions apps/ledger-live-mobile/src/screens/FirmwareUpdate/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Image, Linking } from "react-native";
import { Image } from "react-native";
import { getDeviceModel } from "@ledgerhq/devices";
import {
updateFirmwareActionArgs,
Expand Down Expand Up @@ -44,7 +44,6 @@ import {
UpdateStep,
useUpdateFirmwareAndRestoreSettings,
} from "./useUpdateFirmwareAndRestoreSettings";
import { urls } from "../../config/urls";
import { TrackScreen } from "../../analytics";
import ImageHexProcessor from "../../components/CustomImage/ImageHexProcessor";
import { targetDataDimensions } from "../CustomImage/shared";
Expand Down Expand Up @@ -154,10 +153,6 @@ export const FirmwareUpdate = ({
const theme: "dark" | "light" = dark ? "dark" : "light";
const dispatch = useDispatch();

const onOpenReleaseNotes = useCallback(() => {
Linking.openURL(urls.fwUpdateReleaseNotes[device.modelId]);
}, [device.modelId]);

const productName = getDeviceModel(device.modelId).productName;

const [fullUpdateComplete, setFullUpdateComplete] = useState(false);
Expand Down Expand Up @@ -547,8 +542,6 @@ export const FirmwareUpdate = ({
}

if (restoreStepDeniedError) {
console.log(`restore step denied: ${JSON.stringify(restoreStepDeniedError)}`);

return (
<RestoreStepDenied
device={device}
Expand Down
3 changes: 1 addition & 2 deletions apps/ledger-live-mobile/src/screens/Portfolio/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,12 +171,11 @@ function PortfolioScreen({ navigation }: NavigationProps) {
]),
],
[
onBackFromUpdate,
showAssets,
colors.background.main,
hideEmptyTokenAccount,
openAddModal,
// TODO: discreetMode is never used 😱 is it safe to remove
// discreetMode,
isAWalletCardDisplayed,
t,
],
Expand Down

0 comments on commit 7ac8eed

Please sign in to comment.