added hover effect for close btn
This commit is contained in:
@@ -16,7 +16,7 @@ function Popup() {
|
||||
|
||||
useEffect(() => {
|
||||
if (!closed) {
|
||||
const timer = setTimeout(() => setIsPopupShowed(true), 1000);
|
||||
const timer = setTimeout(() => setIsPopupShowed(true), 10000);
|
||||
return () => clearTimeout(timer);
|
||||
}
|
||||
}, [setIsPopupShowed, closed]);
|
||||
@@ -44,10 +44,10 @@ function Popup() {
|
||||
Перейти
|
||||
</Link>
|
||||
<button
|
||||
className="absolute top-2 right-2"
|
||||
className="absolute top-2 right-2 hover:bg-white rounded-full w-8 flex p-px hover:bg-opacity-10"
|
||||
onClick={handlePopupClick}
|
||||
>
|
||||
<CloseIcon className="w-6" />
|
||||
<CloseIcon className="w-6 m-auto" />
|
||||
</button>
|
||||
</div>
|
||||
</motion.div>
|
||||
|
||||
Reference in New Issue
Block a user