diff --git a/website/src/components/Dashboard/WelcomeModal.tsx b/website/src/components/Dashboard/WelcomeModal.tsx index e19b1ed7..f8544db2 100644 --- a/website/src/components/Dashboard/WelcomeModal.tsx +++ b/website/src/components/Dashboard/WelcomeModal.tsx @@ -13,7 +13,7 @@ import { useColorModeValue, } from "@chakra-ui/react"; import { useSession } from "next-auth/react"; -import { useState } from "react"; +import { useState, useEffect } from "react"; export function WelcomeModal() { const backgroundColor = useColorModeValue("white", "gray.700"); @@ -21,6 +21,15 @@ export function WelcomeModal() { const [showModal, setShowModal] = useState(true); + // useEffect(() => { + // if (!localStorage.getItem("welcomeModalSeen")) { + // setShowModal(true); + // localStorage.setItem("welcomeModalSeen", "true"); + // } else { + // setShowModal(false); + // } + // }, []); + if (!session) { return <>; } @@ -39,7 +48,7 @@ export function WelcomeModal() { understand and respond to humans. - Do tasks to help train the model and earn points based on the amount of tasks you do. + Complete tasks to help train the model and earn points!