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 4214fe127f - Show all commits

View File

@ -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(