diff --git a/pages/_app.jsx b/pages/_app.jsx index 6c8eb3fa..dda8d5a6 100644 --- a/pages/_app.jsx +++ b/pages/_app.jsx @@ -38,36 +38,8 @@ function collectHeadings(nodes) { } function MyApp({ Component, pageProps }) { - const [showModal, setShowModal] = useState(false); const router = useRouter(); - const handleClose = () => { - // Close the modal - setShowModal(false); - - // Set the 'showedModal' key in localStorage - window.localStorage.setItem('showedModal', 'true'); - }; - - const handleSignup = () => { - handleClose(); - - // Redirect to the signup page - router.push('/conscious-coliving-course'); - }; - - useEffect(() => { - // Check if the 'showedModal' key exists in localStorage - const hasShownModal = window.localStorage.getItem('showedModal'); - - // If it doesn't exist, display the modal - if (!hasShownModal) { - setTimeout(() => { - setShowModal(true); - }, 5000); - } - }, []); - useEffect(() => { if (siteConfig.analytics) { const handleRouteChange = (url) => {