From 4214fe127fbcfb6a463643ee96ea9c125444ce0a Mon Sep 17 00:00:00 2001 From: enes Date: Mon, 21 Oct 2024 11:44:15 +0200 Subject: [PATCH] fix: disable scroll on zap popup open --- src/pages/mod/internal/zap/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages/mod/internal/zap/index.tsx b/src/pages/mod/internal/zap/index.tsx index 93e8bad..e40a07c 100644 --- a/src/pages/mod/internal/zap/index.tsx +++ b/src/pages/mod/internal/zap/index.tsx @@ -1,6 +1,6 @@ import { ZapSplit } from 'components/Zap' import { RelayController } from 'controllers' -import { useAppSelector, useDidMount } from 'hooks' +import { useAppSelector, useBodyScrollDisable, useDidMount } from 'hooks' import { useState } from 'react' import { toast } from 'react-toastify' import { ModDetails } from 'types' @@ -18,6 +18,8 @@ export const Zap = ({ modDetails }: ZapProps) => { const [totalZappedAmount, setTotalZappedAmount] = useState(0) + useBodyScrollDisable(isOpen) + useDidMount(() => { RelayController.getInstance() .getTotalZapAmount(