Skip to content

Commit

Permalink
fix(web-tools): ApplicationField typing
Browse files Browse the repository at this point in the history
  • Loading branch information
ofreyssinet-ledger committed Jun 10, 2024
1 parent 8abe984 commit bdf92ee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/web-tools/repl/components/fields/ApplicationField.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useState, useEffect } from "react";
import Select from "react-select";
import type { ApplicationVersion, DeviceInfo } from "@ledgerhq/types-live";
import type { App, DeviceInfo } from "@ledgerhq/types-live";
import { getAppsCatalogForDevice } from "@ledgerhq/live-common/device/use-cases/getAppsCatalogForDevice";
import { mapApplicationV2ToApp } from "@ledgerhq/live-common/apps/polyfill";

Expand All @@ -9,15 +9,15 @@ export type DataTypeApplication = {
};

type Props = {
value?: ApplicationVersion;
onChange: (_: ApplicationVersion | null) => void;
value?: App | null;
onChange: (_: App | null | null) => void;
dependencies: {
deviceInfo: DeviceInfo;
};
};

const ApplicationField = ({ value, onChange, dependencies: { deviceInfo } }: Props) => {
const [applications, setApplications] = useState<ApplicationVersion[]>([]);
const [applications, setApplications] = useState<App[]>([]);

useEffect(() => {
if (!deviceInfo) return;
Expand Down

0 comments on commit bdf92ee

Please sign in to comment.