From 183d724d651cc5ae88fceb1842185fecbf4ee8ad Mon Sep 17 00:00:00 2001 From: LSJ Date: Wed, 22 May 2024 22:28:30 +0900 Subject: [PATCH] fix: build error --- modals/aboutHeader/DateCalendarModal.tsx | 2 +- pageTemplates/layout/Layout.tsx | 5 ++--- pages/gather/index.tsx | 3 --- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/modals/aboutHeader/DateCalendarModal.tsx b/modals/aboutHeader/DateCalendarModal.tsx index c21578daa..3bbf94e1c 100644 --- a/modals/aboutHeader/DateCalendarModal.tsx +++ b/modals/aboutHeader/DateCalendarModal.tsx @@ -1,8 +1,8 @@ import "swiper/css"; import dayjs, { Dayjs } from "dayjs"; -import { useSession } from "next-auth/react"; import { useRouter, useSearchParams } from "next/navigation"; +import { useSession } from "next-auth/react"; import { useState } from "react"; import { useSetRecoilState } from "recoil"; import { Swiper, SwiperSlide } from "swiper/react"; diff --git a/pageTemplates/layout/Layout.tsx b/pageTemplates/layout/Layout.tsx index 46f6255f1..5fc8d4fdb 100644 --- a/pageTemplates/layout/Layout.tsx +++ b/pageTemplates/layout/Layout.tsx @@ -2,9 +2,9 @@ import { GoogleAnalytics } from "@next/third-parties/google"; import axios from "axios"; +import { signOut, useSession } from "next-auth/react"; import { usePathname } from "next/navigation"; import { useRouter } from "next/router"; -import { signOut, useSession } from "next-auth/react"; import { useEffect, useState } from "react"; import BottomNav from "../../components/BottomNav"; @@ -61,12 +61,11 @@ function Layout({ children }: ILayout) { const isBottomNavCondition = BASE_BOTTOM_NAV_SEGMENT.includes(currentSegment?.[0]) && !currentSegment?.[1]; - console.log(4, isBottomNavCondition, currentSegment); + return ( <> - {token && ( <>
{children}
diff --git a/pages/gather/index.tsx b/pages/gather/index.tsx index bc41d3645..f9fb76beb 100644 --- a/pages/gather/index.tsx +++ b/pages/gather/index.tsx @@ -1,4 +1,3 @@ -import { useSession } from "next-auth/react"; import { useEffect, useState } from "react"; import { useSetRecoilState } from "recoil"; @@ -14,8 +13,6 @@ import { isGatherAlertState } from "../../recoils/renderRecoils"; import { checkAndSetLocalStorage } from "../../utils/storageUtils"; function Gather() { - const { data: session } = useSession(); - const [isModal, setIsModal] = useState(false); const setIsGatherAlert = useSetRecoilState(isGatherAlertState);