Skip to content

Commit

Permalink
Merge branch 'dev' into feat/ui-improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
kemuru authored Dec 13, 2024
2 parents 9921bc0 + 4d7f96c commit 43554f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
useWritePnkIncreaseAllowance,
} from "hooks/contracts/generated";
import { useCourtDetails } from "hooks/queries/useCourtDetails";
import { useLockOverlayScroll } from "hooks/useLockOverlayScroll";
import { usePnkData } from "hooks/usePNKData";
import { formatETH } from "utils/format";
import { isUndefined } from "utils/index";
Expand Down Expand Up @@ -55,6 +56,7 @@ const StakeWithdrawButton: React.FC<IActionButton> = ({ amount, parsedAmount, ac
const [isSuccess, setIsSuccess] = useState(false);
const [popupStepsState, setPopupStepsState] = useState<Steps>();
const controllerRef = useRef<AbortController | null>(null);
useLockOverlayScroll(isPopupOpen);

const { data: courtDetails } = useCourtDetails(id);
const { balance, jurorBalance, allowance, refetchAllowance } = usePnkData({ courtId: id });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { _TimelineItem1, CustomTimeline } from "@kleros/ui-components-library";

import Close from "svgs/icons/close.svg";

import { useLockOverlayScroll } from "hooks/useLockOverlayScroll";
import { useSortitionModulePhase } from "hooks/useSortitionModule";

import { landscapeStyle } from "styles/landscapeStyle";
Expand Down Expand Up @@ -112,7 +111,6 @@ interface IStakeWithdrawPopup {
}

const StakeWithdrawPopup: React.FC<IStakeWithdrawPopup> = ({ amount, closePopup, steps, isSuccess, action }) => {
useLockOverlayScroll(true);
const { data: phase } = useSortitionModulePhase();

return (
Expand Down

0 comments on commit 43554f7

Please sign in to comment.