diff --git a/src/app/auth/validation/complete/page.tsx b/src/app/auth/validation/complete/page.tsx index ffd44b65..72628b9c 100644 --- a/src/app/auth/validation/complete/page.tsx +++ b/src/app/auth/validation/complete/page.tsx @@ -4,17 +4,30 @@ import { useRouter, useSearchParams } from "next/navigation"; import LottieClient from "@shared/components/Lottie"; import { Button } from "@shared/components/ui/button"; + import useIsLogin from "@shared/hooks/useIsLogin"; + import { Mixpanel } from "@shared/utils/mixpanel"; import { SIGNUP_COMPLETED } from "@auth/constants/auth"; import lottieJson from "public/assets/Problem_Complete.json"; import FewLogo from "public/enterlogo.svg"; + export default function ValidationCompletePage() { const searchParams = useSearchParams(); const router = useRouter(); const memberEmail = searchParams.get("member_email"); + const isLogin = useIsLogin(); + + // useAuth(auth_token ? auth_token : ""); + + // useEffect(function setMixpanel() { + // if (memberEmail) { + // console.log(memberEmail); + // } + // }, []); + return (
@@ -32,7 +45,6 @@ export default function ValidationCompletePage() { Mixpanel.identify({ id: memberEmail }); Mixpanel.people.set({ peoples: { $email: memberEmail } }); } - router.push("/"); }} > diff --git a/src/app/workbook/[id]/page.tsx b/src/app/workbook/[id]/page.tsx index 3f1830a3..14aec1db 100644 --- a/src/app/workbook/[id]/page.tsx +++ b/src/app/workbook/[id]/page.tsx @@ -47,11 +47,11 @@ export default function WorkbookPage() { // usePathname 로 workbook id 받기 const pathname = usePathname(); const workbookId = getWorkbookId(pathname); - useTrackMixpanel({ - eventKey: EVENT_NAME.WORKBOOK_APPEAR, - property: { id: workbookId }, - dep: pathname, - }); + // useTrackMixpanel({ + // eventKey: EVENT_NAME.WORKBOOK_APPEAR, + // property: { id: workbookId }, + // dep: pathname, + // }); const { data: workbookInfo, isLoading } = useQuery({ ...getWorkbookQueryOptions(workbookId), diff --git a/src/article/components/ArticleBottomButton/indext.tsx b/src/article/components/ArticleBottomButton/indext.tsx index 3c324bec..28dc3421 100644 --- a/src/article/components/ArticleBottomButton/indext.tsx +++ b/src/article/components/ArticleBottomButton/indext.tsx @@ -5,9 +5,7 @@ import { useParams, useRouter } from "next/navigation"; import { HTMLAttributes } from "react"; import { Button } from "@shared/components/ui/button"; -import { EVENT_NAME } from "@shared/constants/mixpanel"; import { useProblemIdsViewModel } from "@shared/models/useProblemIdsViewModel"; -import { Mixpanel } from "@shared/utils/mixpanel"; interface ArticleBottomButtonProps extends HTMLAttributes {} export default function ArticleBottomButton({ @@ -18,10 +16,10 @@ export default function ArticleBottomButton({ const { getCurrentProblemId } = useProblemIdsViewModel(); const onClickGoProblem = () => { push(`/problem/${getCurrentProblemId()}`); - Mixpanel.track({ - name: EVENT_NAME.ARTICLE_PROBLEMBUTTON_TAPPED, - property: { id: articleId }, - }); + // Mixpanel.track({ + // name: EVENT_NAME.ARTICLE_PROBLEMBUTTON_TAPPED, + // property: { id: articleId }, + // }); }; return (