From ef61f7dc8a47b7330dc67e8dcd59354857fcc8e5 Mon Sep 17 00:00:00 2001 From: Karolina Kosiorowska Date: Wed, 4 Dec 2024 14:22:18 +0100 Subject: [PATCH] Update component file names MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We should not decouple file name from component name—these should match. --- .../ActiveStakingStep/StakeFormModal/StakeDetails.tsx | 4 ++-- .../ActiveUnstakingStep/UnstakeFormModal/UnstakeDetails.tsx | 4 ++-- .../FeesDetails/{FeesItem.tsx => FeesDetailsAmountItem.tsx} | 0 .../{AmountItem.tsx => TransactionDetailsAmountItem.tsx} | 0 4 files changed, 4 insertions(+), 4 deletions(-) rename dapp/src/components/shared/FeesDetails/{FeesItem.tsx => FeesDetailsAmountItem.tsx} (100%) rename dapp/src/components/shared/TransactionDetails/{AmountItem.tsx => TransactionDetailsAmountItem.tsx} (100%) diff --git a/dapp/src/components/TransactionModal/ActiveStakingStep/StakeFormModal/StakeDetails.tsx b/dapp/src/components/TransactionModal/ActiveStakingStep/StakeFormModal/StakeDetails.tsx index ac51f54cd..05fb8ad5c 100644 --- a/dapp/src/components/TransactionModal/ActiveStakingStep/StakeFormModal/StakeDetails.tsx +++ b/dapp/src/components/TransactionModal/ActiveStakingStep/StakeFormModal/StakeDetails.tsx @@ -1,7 +1,7 @@ import React from "react" import { List } from "@chakra-ui/react" -import TransactionDetailsAmountItem from "#/components/shared/TransactionDetails/AmountItem" -import FeesDetailsAmountItem from "#/components/shared/FeesDetails/FeesItem" +import TransactionDetailsAmountItem from "#/components/shared/TransactionDetails/TransactionDetailsAmountItem" +import FeesDetailsAmountItem from "#/components/shared/FeesDetails/FeesDetailsAmountItem" import { TOKEN_AMOUNT_FIELD_NAME } from "#/components/shared/TokenAmountForm/TokenAmountFormBase" import { FeesTooltip } from "#/components/TransactionModal/FeesTooltip" import { diff --git a/dapp/src/components/TransactionModal/ActiveUnstakingStep/UnstakeFormModal/UnstakeDetails.tsx b/dapp/src/components/TransactionModal/ActiveUnstakingStep/UnstakeFormModal/UnstakeDetails.tsx index b457f1347..b69ce1a4a 100644 --- a/dapp/src/components/TransactionModal/ActiveUnstakingStep/UnstakeFormModal/UnstakeDetails.tsx +++ b/dapp/src/components/TransactionModal/ActiveUnstakingStep/UnstakeFormModal/UnstakeDetails.tsx @@ -1,6 +1,6 @@ import React from "react" import { Flex, List } from "@chakra-ui/react" -import TransactionDetailsAmountItem from "#/components/shared/TransactionDetails/AmountItem" +import TransactionDetailsAmountItem from "#/components/shared/TransactionDetails/TransactionDetailsAmountItem" import { TOKEN_AMOUNT_FIELD_NAME } from "#/components/shared/TokenAmountForm/TokenAmountFormBase" import { useFormField, @@ -9,7 +9,7 @@ import { } from "#/hooks" import { ACTION_FLOW_TYPES, CurrencyType } from "#/types" import { DESIRED_DECIMALS_FOR_FEE, featureFlags } from "#/constants" -import FeesDetailsAmountItem from "#/components/shared/FeesDetails/FeesItem" +import FeesDetailsAmountItem from "#/components/shared/FeesDetails/FeesDetailsAmountItem" import WithdrawWarning from "./WithdrawWarning" import { FeesTooltip } from "../../FeesTooltip" diff --git a/dapp/src/components/shared/FeesDetails/FeesItem.tsx b/dapp/src/components/shared/FeesDetails/FeesDetailsAmountItem.tsx similarity index 100% rename from dapp/src/components/shared/FeesDetails/FeesItem.tsx rename to dapp/src/components/shared/FeesDetails/FeesDetailsAmountItem.tsx diff --git a/dapp/src/components/shared/TransactionDetails/AmountItem.tsx b/dapp/src/components/shared/TransactionDetails/TransactionDetailsAmountItem.tsx similarity index 100% rename from dapp/src/components/shared/TransactionDetails/AmountItem.tsx rename to dapp/src/components/shared/TransactionDetails/TransactionDetailsAmountItem.tsx