mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-04 23:16:53 +00:00
封装isBroswer()
This commit is contained in:
@@ -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'>
|
||||
|
||||
Reference in New Issue
Block a user