Skip to content

Commit

Permalink
fix: build error
Browse files Browse the repository at this point in the history
  • Loading branch information
SeungJL committed May 22, 2024
1 parent d537872 commit 183d724
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion modals/aboutHeader/DateCalendarModal.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
5 changes: 2 additions & 3 deletions pageTemplates/layout/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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 (
<>
<Seo title="ABOUT" />
<GoogleAnalytics gaId={process.env.NEXT_PUBLIC_GA_MEASUREMENT_ID} />

{token && (
<>
<div id="root-modal">{children}</div>
Expand Down
3 changes: 0 additions & 3 deletions pages/gather/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { useSession } from "next-auth/react";
import { useEffect, useState } from "react";
import { useSetRecoilState } from "recoil";

Expand All @@ -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);

Expand Down

0 comments on commit 183d724

Please sign in to comment.