@@ -5,13 +5,11 @@ import { useMantineColorScheme } from "@mantine/core";
55import "@mantine/dropzone/styles.css" ;
66import styled , { ThemeProvider } from "styled-components" ;
77import { QueryClient , QueryClientProvider } from "@tanstack/react-query" ;
8- import Cookie from "js-cookie" ;
98import { NextSeo } from "next-seo" ;
109import { SEO } from "src/constants/seo" ;
1110import { darkTheme , lightTheme } from "src/constants/theme" ;
1211import { Editor } from "src/containers/Editor" ;
1312import { BottomBar } from "src/containers/Editor/components/BottomBar" ;
14- import { UpgradeModal } from "src/containers/Modals" ;
1513import { Toolbar } from "src/containers/Toolbar" ;
1614import useConfig from "src/store/useConfig" ;
1715import useFile from "src/store/useFile" ;
@@ -48,12 +46,6 @@ const EditorPage = () => {
4846 const { setColorScheme } = useMantineColorScheme ( ) ;
4947 const checkEditorSession = useFile ( state => state . checkEditorSession ) ;
5048 const darkmodeEnabled = useConfig ( state => state . darkmodeEnabled ) ;
51- const [ upgradeVisible , setUpgradeVisible ] = React . useState ( false ) ;
52-
53- React . useEffect ( ( ) => {
54- const isUpgradeShown = Cookie . get ( "upgrade_shown" ) ;
55- if ( ! isUpgradeShown ) setUpgradeVisible ( true ) ;
56- } , [ ] ) ;
5749
5850 React . useEffect ( ( ) => {
5951 if ( isReady ) checkEditorSession ( query ?. json ) ;
@@ -75,13 +67,6 @@ const EditorPage = () => {
7567 < QueryClientProvider client = { queryClient } >
7668 < ExternalMode />
7769 < ModalController />
78- < UpgradeModal
79- opened = { upgradeVisible }
80- onClose = { ( ) => {
81- setUpgradeVisible ( false ) ;
82- Cookie . set ( "upgrade_shown" , "true" , { expires : 1 } ) ;
83- } }
84- />
8570 < StyledEditorWrapper >
8671 < StyledPageWrapper >
8772 < Toolbar />
0 commit comments