diff --git a/src/_apis/crew/crew.ts b/src/_apis/crew/crew.ts index 169faa8c..ffa67030 100644 --- a/src/_apis/crew/crew.ts +++ b/src/_apis/crew/crew.ts @@ -3,7 +3,6 @@ import { CreateCrewRequestTypes, CreateCrewResponseTypes, EditCrewRequestTypes, - EditCrewResponseTypes, } from '@/src/types/create-crew'; export async function createCrew(data: CreateCrewRequestTypes) { diff --git a/src/app/(crew)/crew/create/_components/create-crew-form/index.tsx b/src/app/(crew)/crew/create/_components/create-crew-form/index.tsx index 23e969fb..cd122a8c 100644 --- a/src/app/(crew)/crew/create/_components/create-crew-form/index.tsx +++ b/src/app/(crew)/crew/create/_components/create-crew-form/index.tsx @@ -3,7 +3,6 @@ import { FormEvent, useEffect, useState } from 'react'; import { Controller, useForm, useWatch } from 'react-hook-form'; import useFormPersist from 'react-hook-form-persist'; -import { toast } from 'react-toastify'; import { useRouter } from 'next/navigation'; import { NumberInput } from '@mantine/core'; import { getImageUrl } from '@/src/_apis/image/get-image-url'; diff --git a/src/app/(crew)/crew/detail/[id]/_components/create-gathering/create-gathering-form/index.tsx b/src/app/(crew)/crew/detail/[id]/_components/create-gathering/create-gathering-form/index.tsx index 6dcb3b90..5781d7f6 100644 --- a/src/app/(crew)/crew/detail/[id]/_components/create-gathering/create-gathering-form/index.tsx +++ b/src/app/(crew)/crew/detail/[id]/_components/create-gathering/create-gathering-form/index.tsx @@ -1,8 +1,7 @@ 'use client'; -import { FormEvent, useEffect } from 'react'; +import { FormEvent } from 'react'; import { Controller, useForm, useWatch } from 'react-hook-form'; -import { toast } from 'react-toastify'; import { NumberInput } from '@mantine/core'; import { getImageUrl } from '@/src/_apis/image/get-image-url'; import Button from '@/src/components/common/input/button'; diff --git a/src/app/(crew)/crew/detail/[id]/_components/create-gathering/index.tsx b/src/app/(crew)/crew/detail/[id]/_components/create-gathering/index.tsx index 17d1474c..f5ed499e 100644 --- a/src/app/(crew)/crew/detail/[id]/_components/create-gathering/index.tsx +++ b/src/app/(crew)/crew/detail/[id]/_components/create-gathering/index.tsx @@ -2,12 +2,10 @@ import { useRouter } from 'next/navigation'; import { useDisclosure } from '@mantine/hooks'; -import { useGetCrewDetailQuery } from '@/src/_queries/crew/crew-detail-queries'; import { useGetGatheringListQuery } from '@/src/_queries/crew/gathering-list-queries'; import { useAuth } from '@/src/hooks/use-auth'; import CreateGatheringModalContainer from '@/src/app/(crew)/crew/detail/[id]/_components/create-gathering/create-gathering-modal/container'; import Button from '@/src/components/common/input/button'; -import { CrewDetail } from '@/src/types/crew-card'; import { CreateGatheringFormTypes } from '@/src/types/gathering-data'; export default function CreateGathering({ crewId }: { crewId: number }) { @@ -15,7 +13,7 @@ export default function CreateGathering({ crewId }: { crewId: number }) { const router = useRouter(); const [opened, { open, close }] = useDisclosure(false); - const { data: gatheringList, isLoading, error, refetch } = useGetGatheringListQuery(crewId); + const { data: gatheringList } = useGetGatheringListQuery(crewId); // totalGatheringCount 추출 const totalGatheringCount = gatheringList?.length ?? 0; diff --git a/src/app/(crew)/crew/detail/[id]/edit/page.tsx b/src/app/(crew)/crew/detail/[id]/edit/page.tsx index cd0688d5..f590dd0e 100644 --- a/src/app/(crew)/crew/detail/[id]/edit/page.tsx +++ b/src/app/(crew)/crew/detail/[id]/edit/page.tsx @@ -10,7 +10,7 @@ import IcoCreateCrew from '@/public/assets/icons/ic-create-crew.svg'; export default function EditCrewPage() { const { id } = useParams(); - const { data, isLoading, error } = useGetCrewDetailQuery(Number(id)); + const { data, isLoading } = useGetCrewDetailQuery(Number(id)); const { isPending, mutate } = useEditCrewQuery(Number(id)); if (data === undefined) return null; diff --git a/src/app/(crew)/my-crew/hosted/page.tsx b/src/app/(crew)/my-crew/hosted/page.tsx index 6e388ca6..83a4a5ba 100644 --- a/src/app/(crew)/my-crew/hosted/page.tsx +++ b/src/app/(crew)/my-crew/hosted/page.tsx @@ -1,6 +1,5 @@ 'use client'; -import { Loader } from '@mantine/core'; import { useGetMyCrewHostedQuery } from '@/src/_queries/crew/my-crew-hosted-list-query'; import { useInfiniteScroll } from '@/src/hooks/use-infinite-scroll'; import CrewCardList from '@/src/components/common/crew-list/crew-card-list'; diff --git a/src/app/(crew)/my-crew/joined/page.tsx b/src/app/(crew)/my-crew/joined/page.tsx index 23c47f14..e19ca4cc 100644 --- a/src/app/(crew)/my-crew/joined/page.tsx +++ b/src/app/(crew)/my-crew/joined/page.tsx @@ -1,6 +1,5 @@ 'use client'; -import { Loader } from '@mantine/core'; import { useGetMyCrewJoinedQuery } from '@/src/_queries/crew/my-crew-joined-list-query'; import { useInfiniteScroll } from '@/src/hooks/use-infinite-scroll'; import CrewCardList from '@/src/components/common/crew-list/crew-card-list'; diff --git a/src/app/(crew)/my-page/_components/profile-card/container.tsx b/src/app/(crew)/my-page/_components/profile-card/container.tsx index 263f9a1e..0b4fdf15 100644 --- a/src/app/(crew)/my-page/_components/profile-card/container.tsx +++ b/src/app/(crew)/my-page/_components/profile-card/container.tsx @@ -3,11 +3,7 @@ import { useEffect, useState } from 'react'; import { toast } from 'react-toastify'; import { useRouter } from 'next/navigation'; -import { - fetchUpdatedUser, - resetUserProfileImage, - updateUserProfile, -} from '@/src/_apis/auth/user-apis'; +import { resetUserProfileImage, updateUserProfile } from '@/src/_apis/auth/user-apis'; import { useUser } from '@/src/_queries/auth/user-queries'; import { useAuth } from '@/src/hooks/use-auth'; import ProfileSkeleton from '@/src/components/common/skeleton/profile-skeleton'; diff --git a/src/app/(crew)/page.tsx b/src/app/(crew)/page.tsx index f0c148f0..94fa96c4 100644 --- a/src/app/(crew)/page.tsx +++ b/src/app/(crew)/page.tsx @@ -2,7 +2,7 @@ import { useRef, useState } from 'react'; import Image from 'next/image'; -import { Divider, Loader, Skeleton, TextInput } from '@mantine/core'; +import { Divider, TextInput } from '@mantine/core'; import { useGetCrewListQuery } from '@/src/_queries/crew/crew-list-queries'; import regionData from '@/src/data/region.json'; import { useInfiniteScroll } from '@/src/hooks/use-infinite-scroll'; diff --git a/src/components/common/gathering-card/container.tsx b/src/components/common/gathering-card/container.tsx index 2a4de2da..80165ae8 100644 --- a/src/components/common/gathering-card/container.tsx +++ b/src/components/common/gathering-card/container.tsx @@ -4,9 +4,8 @@ import { useEffect, useState } from 'react'; import { toast } from 'react-toastify'; import { useDisclosure } from '@mantine/hooks'; import { useGetGatheringDetailQuery } from '@/src/_queries/gathering/gathering-detail-queries'; -import { ApiError } from '@/src/utils/api'; import GatheringDetailModalContainer from '@/src/app/(crew)/crew/detail/[id]/_components/gathering-detail-modal/container'; -import { GatheringData, GatheringDetailType, GatheringType } from '@/src/types/gathering-data'; +import { GatheringType } from '@/src/types/gathering-data'; import GatheringCardPresenter from './presenter'; interface GatheringCardContainerProps extends GatheringType { diff --git a/src/components/common/gathering-card/presenter.tsx b/src/components/common/gathering-card/presenter.tsx index a77048af..00a033d4 100644 --- a/src/components/common/gathering-card/presenter.tsx +++ b/src/components/common/gathering-card/presenter.tsx @@ -1,6 +1,5 @@ import { MouseEvent } from 'react'; import Image from 'next/image'; -import { Badge } from '@mantine/core'; import { cn } from '@/src/utils/cn'; import { formatDate } from '@/src/utils/format-date'; import Button from '@/src/components/common/input/button'; diff --git a/src/components/common/gathering-card/scheduled-gathering-card/presenter.tsx b/src/components/common/gathering-card/scheduled-gathering-card/presenter.tsx index d5713567..13d3a3dd 100644 --- a/src/components/common/gathering-card/scheduled-gathering-card/presenter.tsx +++ b/src/components/common/gathering-card/scheduled-gathering-card/presenter.tsx @@ -1,5 +1,4 @@ import Image from 'next/image'; -import { Badge } from '@mantine/core'; import { formatDate } from '@/src/utils/format-date'; import { GatheringCardProps } from '@/src/types/gathering-data'; import IcoPerson from '@/public/assets/icons/ic-gathering-person.svg'; diff --git a/src/components/common/header/header.stories.tsx b/src/components/common/header/header.stories.tsx index 29e3ed69..f7efd593 100644 --- a/src/components/common/header/header.stories.tsx +++ b/src/components/common/header/header.stories.tsx @@ -1,7 +1,5 @@ -import { useState } from 'react'; import type { Meta, StoryFn } from '@storybook/react'; -import { QueryClient, QueryClientProvider, useQueryClient } from '@tanstack/react-query'; -import { useAuth } from '@/src/hooks/use-auth'; +import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; import Header from '@/src/components/common/header/container'; const meta: Meta = { diff --git a/src/components/common/input/button/floating-btn.tsx b/src/components/common/input/button/floating-btn.tsx index 84b6ae3b..6190e18c 100644 --- a/src/components/common/input/button/floating-btn.tsx +++ b/src/components/common/input/button/floating-btn.tsx @@ -10,7 +10,7 @@ export default function FloatingButton({ onClick }: FloatingButtonProps) {