From eec8832a902540a5b6bb02564c387fe215ad8fbc Mon Sep 17 00:00:00 2001 From: Karolina Kosiorowska Date: Wed, 30 Oct 2024 13:28:58 +0100 Subject: [PATCH] Remove `LoadingModal` from the deposit/withdrawal flow --- .../TransactionModal/LoadingModal.tsx | 20 ------------------- .../TransactionModal/ModalContentWrapper.tsx | 3 --- 2 files changed, 23 deletions(-) delete mode 100644 dapp/src/components/TransactionModal/LoadingModal.tsx diff --git a/dapp/src/components/TransactionModal/LoadingModal.tsx b/dapp/src/components/TransactionModal/LoadingModal.tsx deleted file mode 100644 index fc122edff..000000000 --- a/dapp/src/components/TransactionModal/LoadingModal.tsx +++ /dev/null @@ -1,20 +0,0 @@ -import React from "react" -import { ModalBody, ModalHeader, VStack } from "@chakra-ui/react" -import Spinner from "#/components/shared/Spinner" -import Skeleton from "#/components/shared/Skeleton" - -export default function LoadingModal() { - return ( - <> - Loading... - - - - - - - - - - ) -} diff --git a/dapp/src/components/TransactionModal/ModalContentWrapper.tsx b/dapp/src/components/TransactionModal/ModalContentWrapper.tsx index bf08288a4..b3d017ea2 100644 --- a/dapp/src/components/TransactionModal/ModalContentWrapper.tsx +++ b/dapp/src/components/TransactionModal/ModalContentWrapper.tsx @@ -7,7 +7,6 @@ import { BaseModalProps, PROCESS_STATUSES } from "#/types" import React from "react" import ActionFormModal from "./ActionFormModal" import ErrorModal from "./ErrorModal" -import LoadingModal from "./LoadingModal" import ResumeModal from "./ResumeModal" import SuccessModal from "./SuccessModal" import NotEnoughFundsModal from "./ActiveUnstakingStep/NotEnoughFundsModal" @@ -25,8 +24,6 @@ export default function ModalContentWrapper({ if (!tokenAmount || status === PROCESS_STATUSES.REFINE_AMOUNT) return - if (status === PROCESS_STATUSES.LOADING) return - if (status === PROCESS_STATUSES.SUCCEEDED) return if (status === PROCESS_STATUSES.FAILED)