Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-babylonlabs committed Oct 6, 2024
1 parent a73446b commit 55caf93
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/app/components/Modals/UnbondWithdrawModal.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -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";
Expand Down
5 changes: 3 additions & 2 deletions src/app/hooks/useVersions.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand All @@ -21,4 +22,4 @@ export function useVersionByHeight(height: number) {
() => getCurrentGlobalParamsVersion(height, versions ?? []),
[versions, height],
);
}
}

0 comments on commit 55caf93

Please sign in to comment.