mirror of
https://github.com/AykutSarac/jsoncrack.com.git
synced 2025-01-12 19:02:53 +08:00
delay upgrade modal showing
This commit is contained in:
parent
ed7e50475d
commit
000e46566d
@ -75,7 +75,9 @@ const EditorPage = () => {
|
||||
|
||||
useEffect(() => {
|
||||
const isUpgradeShown = Cookie.get("upgrade_shown");
|
||||
if (!isUpgradeShown) setVisible("UpgradeModal", true);
|
||||
if (!isUpgradeShown) {
|
||||
setTimeout(() => setVisible("UpgradeModal", true), 30_000);
|
||||
}
|
||||
}, [setVisible]);
|
||||
|
||||
useEffect(() => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user