Skip to content

Commit

Permalink
Merge pull request LedgerHQ#3116 from gre/fixes-flow
Browse files Browse the repository at this point in the history
Fixes flow
  • Loading branch information
gre committed Aug 11, 2020
2 parents c1e3ea4 + bc5c532 commit 4cf45fc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions src/renderer/modals/UpdateFirmwareModal/index.js
Expand Up @@ -5,6 +5,7 @@ import type { TFunction } from "react-i18next";
import { log } from "@ledgerhq/logs";
import type { DeviceModelId } from "@ledgerhq/devices";
import type { DeviceInfo, FirmwareUpdateContext } from "@ledgerhq/live-common/lib/types/manager";
import type { Device } from "~/renderer/reducers/devices";
import logger from "~/logger";
import Modal from "~/renderer/components/Modal";
import Stepper from "~/renderer/components/Stepper";
Expand All @@ -23,6 +24,7 @@ export type StepProps = {
onCloseModal: (proceedToAppReinstall?: boolean) => void,
error: ?Error,
setError: Error => void,
device: Device,
deviceModelId: DeviceModelId,
deviceInfo: DeviceInfo,
t: TFunction,
Expand Down Expand Up @@ -77,7 +79,6 @@ const UpdateModal = ({
id: "idCheck",
label: t("manager.modal.identifier"),
component: StepFullFirmwareInstall,
footer: null,
onBack: null,
hideFooter: true,
};
Expand All @@ -95,7 +96,6 @@ const UpdateModal = ({
id: "updateMCU",
label: t("manager.modal.steps.updateMCU"),
component: StepFlashMcu,
footer: null,
onBack: null,
hideFooter: true,
};
Expand Down Expand Up @@ -168,14 +168,14 @@ const UpdateModal = ({
preventBackdropClick={!["finish", "resetDevice"].includes(stepId) && !error}
render={() => (
<Stepper
{...additionalProps}
key={nonce}
onStepChange={handleStepChange}
title={t("manager.firmware.update")}
stepId={stateStepId}
steps={steps}
errorSteps={errorSteps}
deviceModelId={deviceModelId}
{...additionalProps}
onClose={() => onClose()}
>
<HookMountUnmount onMountUnmount={setFirmwareUpdateOpened} />
Expand Down
Expand Up @@ -7,7 +7,6 @@ import { useSelector } from "react-redux";
import type { DeviceModelId } from "@ledgerhq/devices";
import manager from "@ledgerhq/live-common/lib/manager";
import type { FirmwareUpdateContext, DeviceInfo } from "@ledgerhq/live-common/lib/types/manager";
import type { Device } from "~/renderer/reducers/devices";
import { command } from "~/renderer/commands";
import { getCurrentDevice } from "~/renderer/reducers/devices";
import TrackPage from "~/renderer/analytics/TrackPage";
Expand Down Expand Up @@ -107,10 +106,7 @@ const Body = ({
);
};

type Props = StepProps & {
device: Device,
deviceModelId: DeviceModelId,
};
type Props = StepProps;

const StepFullFirmwareInstall = ({
firmware,
Expand Down
8 changes: 6 additions & 2 deletions src/renderer/screens/exchange/Buy/SelectAccountAndCurrency.js
Expand Up @@ -13,14 +13,18 @@ import SelectCurrency from "~/renderer/components/SelectCurrency";
import Button from "~/renderer/components/Button";
import { useSelector, useDispatch } from "react-redux";
import { accountsSelector } from "~/renderer/reducers/accounts";
import type { Account } from "@ledgerhq/live-common/lib/types";
import type {
Account,
AccountLike,
CryptoCurrency,
TokenCurrency,
} from "@ledgerhq/live-common/lib/types";
import FakeLink from "~/renderer/components/FakeLink";
import PlusIcon from "~/renderer/icons/Plus";
import { openModal } from "~/renderer/actions/modals";
import type { ThemedComponent } from "~/renderer/styles/StyleProvider";
import { getAccountCurrency, isAccountEmpty } from "@ledgerhq/live-common/lib/account/helpers";
import { track } from "~/renderer/analytics/segment";
import type { AccountLike } from "@ledgerhq/live-common/lib/types/account";
import { useCurrencyAccountSelect } from "~/renderer/components/PerCurrencySelectAccount/state";

const Container: ThemedComponent<{}> = styled.div`
Expand Down

0 comments on commit 4cf45fc

Please sign in to comment.