diff --git a/apps/ledger-live-mobile/src/screens/Swap/Form/index.tsx b/apps/ledger-live-mobile/src/screens/Swap/Form/index.tsx index 2c8a36544290..189cd414c9ab 100644 --- a/apps/ledger-live-mobile/src/screens/Swap/Form/index.tsx +++ b/apps/ledger-live-mobile/src/screens/Swap/Form/index.tsx @@ -3,11 +3,7 @@ import { useNavigation } from "@react-navigation/native"; import { KeyboardAwareScrollView } from "react-native-keyboard-aware-scroll-view"; import { Button, Flex } from "@ledgerhq/native-ui"; import { ExchangeRate, OnNoRatesCallback } from "@ledgerhq/live-common/exchange/swap/types"; -import { - useSwapTransaction, - useSwapProviders, - usePageState, -} from "@ledgerhq/live-common/exchange/swap/hooks/index"; +import { useSwapTransaction, usePageState } from "@ledgerhq/live-common/exchange/swap/hooks/index"; import { getCustomDappUrl } from "@ledgerhq/live-common/exchange/swap/utils/index"; import { useFeature } from "@ledgerhq/live-common/featureFlags/index"; import { useDispatch, useSelector } from "react-redux"; diff --git a/libs/domain-service/src/__tests__/functional/domain-service.react.test.tsx b/libs/domain-service/src/__tests__/functional/domain-service.react.test.tsx index 01c337ec1b07..8801da3fa702 100644 --- a/libs/domain-service/src/__tests__/functional/domain-service.react.test.tsx +++ b/libs/domain-service/src/__tests__/functional/domain-service.react.test.tsx @@ -39,7 +39,7 @@ const CustomTest = ({ str }: { str: string }) => { ); }; -const wrapper: React.ComponentType = ({ children }) => ( +const wrapper: React.ComponentType<{ children?: React.ReactNode }> = ({ children }) => ( {children} ); @@ -65,6 +65,7 @@ describe("useDomain", () => { it("should return an error when no resolution is found", async () => { const { result } = renderHook(useDomain, { initialProps: "", + // @ts-expect-error weird ts error wrapper, }); @@ -76,6 +77,7 @@ describe("useDomain", () => { it("should return an error when no resolution is found", async () => { const { result, waitForValueToChange } = renderHook(useDomain, { initialProps: "404-Not-Found.eth", + // @ts-expect-error weird ts error wrapper, }); @@ -87,6 +89,7 @@ describe("useDomain", () => { it("should return an error when the input has a forward registry but content is invalid", async () => { const { result, waitForValueToChange } = renderHook(useDomain, { initialProps: "not|valid|👋.eth", + // @ts-expect-error weird ts error wrapper, });