From b56e221b286c7bc34f653fb7884ecda2dc6635d3 Mon Sep 17 00:00:00 2001 From: Ana Maksimovskikh Date: Tue, 10 Dec 2024 14:31:24 +0000 Subject: [PATCH] [web] Fix no-useless-path-segments lint errors --- apps/web/src/components/SendFlow/Beacon/BatchSignPage.tsx | 2 +- apps/web/src/components/SendFlow/Beacon/BeaconSignPage.tsx | 2 +- apps/web/src/components/beacon/BeaconPeers.tsx | 2 +- apps/web/src/components/beacon/PermissionRequestModal.tsx | 2 +- apps/web/src/components/beacon/SignPayloadRequestModal.tsx | 2 +- .../web/src/components/beacon/useHandleBeaconMessage.test.tsx | 4 ++-- apps/web/src/components/beacon/useHandleBeaconMessage.tsx | 4 ++-- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/apps/web/src/components/SendFlow/Beacon/BatchSignPage.tsx b/apps/web/src/components/SendFlow/Beacon/BatchSignPage.tsx index aec74b54cc..7c7910de7e 100644 --- a/apps/web/src/components/SendFlow/Beacon/BatchSignPage.tsx +++ b/apps/web/src/components/SendFlow/Beacon/BatchSignPage.tsx @@ -16,10 +16,10 @@ import { import { FormProvider, useForm } from "react-hook-form"; import { Header } from "./Header"; +import { useSignWithBeacon } from "./useSignWithBeacon"; import { useColor } from "../../../styles/useColor"; import { AddressTile } from "../../AddressTile/AddressTile"; import { JsValueWrap } from "../../JsValueWrap"; -import { useSignWithBeacon } from "../Beacon/useSignWithBeacon"; import { SignButton } from "../SignButton"; import { SignPageFee } from "../SignPageFee"; import { type SdkSignPageProps } from "../utils"; diff --git a/apps/web/src/components/SendFlow/Beacon/BeaconSignPage.tsx b/apps/web/src/components/SendFlow/Beacon/BeaconSignPage.tsx index 4f70346847..4aaf1eb94c 100644 --- a/apps/web/src/components/SendFlow/Beacon/BeaconSignPage.tsx +++ b/apps/web/src/components/SendFlow/Beacon/BeaconSignPage.tsx @@ -9,7 +9,7 @@ import { StakeSignPage } from "./StakeSignPage"; import { TezSignPage } from "./TezSignPage"; import { UndelegationSignPage } from "./UndelegationSignPage"; import { UnstakeSignPage } from "./UnstakeSignPage"; -import { useSignWithBeacon } from "../Beacon/useSignWithBeacon"; +import { useSignWithBeacon } from "./useSignWithBeacon"; export const SingleSignPage = (signProps: SdkSignPageProps) => { const operationType = signProps.operation.operations[0].type; diff --git a/apps/web/src/components/beacon/BeaconPeers.tsx b/apps/web/src/components/beacon/BeaconPeers.tsx index 904f0208c6..819ee4c62f 100644 --- a/apps/web/src/components/beacon/BeaconPeers.tsx +++ b/apps/web/src/components/beacon/BeaconPeers.tsx @@ -5,8 +5,8 @@ import { parsePkh } from "@umami/tezos"; import capitalize from "lodash/capitalize"; import { CodeSandboxIcon, StubIcon as TrashIcon } from "../../assets/icons"; -import { AddressPill } from "../../components/AddressPill/AddressPill"; import { useColor } from "../../styles/useColor"; +import { AddressPill } from "../AddressPill/AddressPill"; import { EmptyMessage } from "../EmptyMessage"; /** diff --git a/apps/web/src/components/beacon/PermissionRequestModal.tsx b/apps/web/src/components/beacon/PermissionRequestModal.tsx index 6fdb382d66..98c98b1e3d 100644 --- a/apps/web/src/components/beacon/PermissionRequestModal.tsx +++ b/apps/web/src/components/beacon/PermissionRequestModal.tsx @@ -34,8 +34,8 @@ import { capitalize } from "lodash"; import { FormProvider, useForm } from "react-hook-form"; import { CodeSandboxIcon } from "../../assets/icons"; -import { OwnedImplicitAccountsAutocomplete } from "../../components/AddressAutocomplete"; import { useColor } from "../../styles/useColor"; +import { OwnedImplicitAccountsAutocomplete } from "../AddressAutocomplete"; import { ModalCloseButton } from "../CloseButton"; import { JsValueWrap } from "../JsValueWrap"; diff --git a/apps/web/src/components/beacon/SignPayloadRequestModal.tsx b/apps/web/src/components/beacon/SignPayloadRequestModal.tsx index 603f5aa78f..332ca3724e 100644 --- a/apps/web/src/components/beacon/SignPayloadRequestModal.tsx +++ b/apps/web/src/components/beacon/SignPayloadRequestModal.tsx @@ -24,8 +24,8 @@ import { WalletClient, useGetImplicitAccount } from "@umami/state"; import { useState } from "react"; import { FormProvider, useForm } from "react-hook-form"; -import { SignButton } from "../../components/SendFlow/SignButton"; import { useColor } from "../../styles/useColor"; +import { SignButton } from "../SendFlow/SignButton"; export const SignPayloadRequestModal = ({ request }: { request: SignPayloadRequestOutput }) => { const { onClose } = useDynamicModalContext(); diff --git a/apps/web/src/components/beacon/useHandleBeaconMessage.test.tsx b/apps/web/src/components/beacon/useHandleBeaconMessage.test.tsx index b8f3f833f7..8e7977f767 100644 --- a/apps/web/src/components/beacon/useHandleBeaconMessage.test.tsx +++ b/apps/web/src/components/beacon/useHandleBeaconMessage.test.tsx @@ -20,9 +20,9 @@ import { MAINNET, mockImplicitAddress } from "@umami/tezos"; import { CustomError } from "@umami/utils"; import { useHandleBeaconMessage } from "./useHandleBeaconMessage"; -import { BatchSignPage } from "../../components/SendFlow/Beacon/BatchSignPage"; -import { SingleSignPage } from "../../components/SendFlow/Beacon/BeaconSignPage"; import { act, dynamicModalContextMock, renderHook, screen, waitFor } from "../../testUtils"; +import { BatchSignPage } from "../SendFlow/Beacon/BatchSignPage"; +import { SingleSignPage } from "../SendFlow/Beacon/BeaconSignPage"; import { type SdkSignPageProps, type SignHeaderProps } from "../SendFlow/utils"; jest.mock("@umami/core", () => ({ diff --git a/apps/web/src/components/beacon/useHandleBeaconMessage.tsx b/apps/web/src/components/beacon/useHandleBeaconMessage.tsx index 37f35ee362..80c3230f66 100644 --- a/apps/web/src/components/beacon/useHandleBeaconMessage.tsx +++ b/apps/web/src/components/beacon/useHandleBeaconMessage.tsx @@ -18,8 +18,8 @@ import { CustomError } from "@umami/utils"; import { PermissionRequestModal } from "./PermissionRequestModal"; import { SignPayloadRequestModal } from "./SignPayloadRequestModal"; -import { BatchSignPage } from "../../components/SendFlow/Beacon/BatchSignPage"; -import { SingleSignPage } from "../../components/SendFlow/Beacon/BeaconSignPage"; +import { BatchSignPage } from "../SendFlow/Beacon/BatchSignPage"; +import { SingleSignPage } from "../SendFlow/Beacon/BeaconSignPage"; import { type SdkSignPageProps, type SignHeaderProps } from "../SendFlow/utils"; /**