封装isBroswer()

This commit is contained in:
tlyong1992
2022-05-24 17:01:42 +08:00
parent a324cc127c
commit 8c19d88630
29 changed files with 110 additions and 114 deletions

View File

@@ -8,14 +8,10 @@ import Image from 'next/image'
*/
const RewardButton = () => {
const openPopover = () => {
if (window) {
document.getElementById('reward-qrcode').classList.remove('hidden')
}
document.getElementById('reward-qrcode').classList.remove('hidden')
}
const closePopover = () => {
if (window) {
document.getElementById('reward-qrcode').classList.add('hidden')
}
document.getElementById('reward-qrcode').classList.add('hidden')
}
return (
<div className='justify-center'>