From 55caf93d672feaa05651f57d512cca55a47e0644 Mon Sep 17 00:00:00 2001 From: jeremy-babylonchain Date: Sun, 6 Oct 2024 19:11:18 +0700 Subject: [PATCH] fix format --- src/app/components/Modals/UnbondWithdrawModal.tsx | 3 +-- src/app/hooks/useVersions.ts | 5 +++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/components/Modals/UnbondWithdrawModal.tsx b/src/app/components/Modals/UnbondWithdrawModal.tsx index 499a62e4..e4069f03 100644 --- a/src/app/components/Modals/UnbondWithdrawModal.tsx +++ b/src/app/components/Modals/UnbondWithdrawModal.tsx @@ -1,6 +1,6 @@ import { IoMdClose } from "react-icons/io"; -import { useAppState } from "@/app/state"; +import { useVersionByHeight } from "@/app/hooks/useVersions"; import { Delegation as DelegationInterface } from "@/app/types/delegations"; import { getNetworkConfig } from "@/config/network.config"; import { blocksToDisplayTime } from "@/utils/blocksToDisplayTime"; @@ -10,7 +10,6 @@ import { maxDecimals } from "@/utils/maxDecimals"; import { LoadingView } from "../Loading/Loading"; import { GeneralModal } from "./GeneralModal"; -import { useVersionByHeight } from "@/app/hooks/useVersions"; export const MODE_UNBOND = "unbond"; export const MODE_WITHDRAW = "withdraw"; diff --git a/src/app/hooks/useVersions.ts b/src/app/hooks/useVersions.ts index 6afff6f2..f1f812b3 100644 --- a/src/app/hooks/useVersions.ts +++ b/src/app/hooks/useVersions.ts @@ -1,7 +1,8 @@ +import { useMemo } from "react"; + import { getGlobalParams } from "@/app/api/getGlobalParams"; import { useAPIQuery } from "@/app/hooks/useApi"; import { getCurrentGlobalParamsVersion } from "@/utils/globalParams"; -import { useMemo } from "react"; export const VERSIONS_KEY = "VERSIONS"; @@ -21,4 +22,4 @@ export function useVersionByHeight(height: number) { () => getCurrentGlobalParamsVersion(height, versions ?? []), [versions, height], ); -} \ No newline at end of file +}