Skip to content

Commit 1d92db7

Browse files
committed
remove page load modal
1 parent d496738 commit 1d92db7

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/pages/editor.tsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import { Toolbar } from "../features/editor/Toolbar";
1717
import useGraph from "../features/editor/views/GraphView/stores/useGraph";
1818
import useConfig from "../store/useConfig";
1919
import useFile from "../store/useFile";
20-
import { useModal } from "../store/useModal";
2120

2221
const ModalController = dynamic(() => import("../features/modals/ModalController"));
2322
const ExternalMode = dynamic(() => import("../features/editor/ExternalMode"));
@@ -71,14 +70,6 @@ const EditorPage = () => {
7170
const checkEditorSession = useFile(state => state.checkEditorSession);
7271
const darkmodeEnabled = useConfig(state => state.darkmodeEnabled);
7372
const fullscreen = useGraph(state => state.fullscreen);
74-
const setVisible = useModal(state => state.setVisible);
75-
76-
useEffect(() => {
77-
// const isUpgradeShown = Cookie.get("upgrade_shown");
78-
// if (!isUpgradeShown) {
79-
setTimeout(() => setVisible("UpgradeModal", true), 1_000);
80-
// }
81-
}, [setVisible]);
8273

8374
useEffect(() => {
8475
if (isReady) checkEditorSession(query?.json);

0 commit comments

Comments
 (0)