Relay operations refactored with NDK for publishing events (+ more. Wrapped up refactoring), pagination scroll up on click, body scroll disable/enable when popups appear/disappear, nsfw tag shown on mod cards if mod post is nsfw #92

Merged
freakoverse merged 19 commits from staging into master 2024-10-21 14:17:02 +00:00
Showing only changes of commit 4214fe127f - Show all commits

View File

@ -1,6 +1,6 @@
import { ZapSplit } from 'components/Zap' import { ZapSplit } from 'components/Zap'
import { RelayController } from 'controllers' import { RelayController } from 'controllers'
import { useAppSelector, useDidMount } from 'hooks' import { useAppSelector, useBodyScrollDisable, useDidMount } from 'hooks'
import { useState } from 'react' import { useState } from 'react'
import { toast } from 'react-toastify' import { toast } from 'react-toastify'
import { ModDetails } from 'types' import { ModDetails } from 'types'
@ -18,6 +18,8 @@ export const Zap = ({ modDetails }: ZapProps) => {
const [totalZappedAmount, setTotalZappedAmount] = useState(0) const [totalZappedAmount, setTotalZappedAmount] = useState(0)
useBodyScrollDisable(isOpen)
useDidMount(() => { useDidMount(() => {
RelayController.getInstance() RelayController.getInstance()
.getTotalZapAmount( .getTotalZapAmount(