fix: disable body scroll on popup open #88

Merged
enes merged 5 commits from 61-popup-scroll into staging 2024-10-21 09:49:13 +00:00
Showing only changes of commit 4bd7c77c05 - Show all commits

View File

@ -5,7 +5,13 @@ import {
UserRelaysType UserRelaysType
} from 'controllers' } from 'controllers'
import { formatDate } from 'date-fns' 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 { useComments } from 'hooks/useComments'
import { Event, kinds, nip19, UnsignedEvent } from 'nostr-tools' import { Event, kinds, nip19, UnsignedEvent } from 'nostr-tools'
import React, { import React, {
@ -502,6 +508,8 @@ const Zap = (props: Event) => {
const [totalZappedAmount, setTotalZappedAmount] = useState(0) const [totalZappedAmount, setTotalZappedAmount] = useState(0)
useBodyScrollDisable(isOpen)
useDidMount(() => { useDidMount(() => {
RelayController.getInstance() RelayController.getInstance()
.getTotalZapAmount( .getTotalZapAmount(