delay upgrade modal showing

This commit is contained in:
AykutSarac 2024-12-24 21:03:09 +03:00
parent ed7e50475d
commit 000e46566d
No known key found for this signature in database

View File

@ -75,7 +75,9 @@ const EditorPage = () => {
useEffect(() => { useEffect(() => {
const isUpgradeShown = Cookie.get("upgrade_shown"); const isUpgradeShown = Cookie.get("upgrade_shown");
if (!isUpgradeShown) setVisible("UpgradeModal", true); if (!isUpgradeShown) {
setTimeout(() => setVisible("UpgradeModal", true), 30_000);
}
}, [setVisible]); }, [setVisible]);
useEffect(() => { useEffect(() => {