added hover effect for close btn

This commit is contained in:
2024-07-11 16:51:58 +05:00
parent ea57f92b90
commit 4a702f9e68
+3 -3
View File
@@ -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>