From 4bd7c77c05a13319a60f8533e76e325f51c658b4 Mon Sep 17 00:00:00 2001 From: enes Date: Mon, 21 Oct 2024 11:43:49 +0200 Subject: [PATCH] fix: disable scroll on zap popup open --- src/pages/mod/internal/comment/index.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/pages/mod/internal/comment/index.tsx b/src/pages/mod/internal/comment/index.tsx index 2f5b721..3c92b25 100644 --- a/src/pages/mod/internal/comment/index.tsx +++ b/src/pages/mod/internal/comment/index.tsx @@ -5,7 +5,13 @@ import { UserRelaysType } from 'controllers' import { formatDate } from 'date-fns' -import { useAppSelector, useDidMount, useNDKContext, useReactions } from 'hooks' +import { + useAppSelector, + useBodyScrollDisable, + useDidMount, + useNDKContext, + useReactions +} from 'hooks' import { useComments } from 'hooks/useComments' import { Event, kinds, nip19, UnsignedEvent } from 'nostr-tools' import React, { @@ -502,6 +508,8 @@ const Zap = (props: Event) => { const [totalZappedAmount, setTotalZappedAmount] = useState(0) + useBodyScrollDisable(isOpen) + useDidMount(() => { RelayController.getInstance() .getTotalZapAmount(