diff --git a/frontend/app/components/global-books/GlobalBookCard.tsx b/frontend/app/components/global-books/GlobalBookCard.tsx index 48113a94..5ff51786 100644 --- a/frontend/app/components/global-books/GlobalBookCard.tsx +++ b/frontend/app/components/global-books/GlobalBookCard.tsx @@ -1,7 +1,5 @@ import { Card } from '@mantine/core'; import type { SearchBooks200BooksItem } from 'client/client.schemas'; -import { useAtom } from 'jotai'; -import { userAtom } from '~/stores/userAtom'; import BookCardThumbnail from '../books/BookCardThumbnail'; interface GlobalBookCardProps { @@ -9,7 +7,6 @@ interface GlobalBookCardProps { } const GlobalBookCard = ({ book }: GlobalBookCardProps) => { - const [user] = useAtom(userAtom); return ( diff --git a/frontend/app/components/global-books/GlobalBookCards.tsx b/frontend/app/components/global-books/GlobalBookCards.tsx index f7bf516c..198ee87a 100644 --- a/frontend/app/components/global-books/GlobalBookCards.tsx +++ b/frontend/app/components/global-books/GlobalBookCards.tsx @@ -1,5 +1,4 @@ import { SearchBooks200BooksItem } from 'client/client.schemas'; -import React from 'react'; import { ScrollArea, SimpleGrid } from '@mantine/core'; import GlobalNoBookComponent from './GlobalNoBookComponent'; import GlobalBookCard from './GlobalBookCard'; diff --git a/frontend/app/components/global-books/GlobalBookKeywordSearchForm.tsx b/frontend/app/components/global-books/GlobalBookKeywordSearchForm.tsx index 60922787..074303c5 100644 --- a/frontend/app/components/global-books/GlobalBookKeywordSearchForm.tsx +++ b/frontend/app/components/global-books/GlobalBookKeywordSearchForm.tsx @@ -2,10 +2,6 @@ import { Collapse, Space } from '@mantine/core'; import type { UseFormReturnType } from '@mantine/form'; import type { SearchBooksParams } from 'client/client.schemas'; import FormLayout from '../layouts/FormLayout'; -import GlobalBookSearchTitleForm from './GlobalBookSearchTitleForm'; -import GlobalBookSearchAuthorForm from './GLobalBookSearchAuthorForm'; -import GlobalBookSearchPublisherForm from './GlobalBookSearchPublisherForm'; -import GlobalBookSearchIsbnForm from './GlobalBookSearchIsbnForm'; import GlobalBookSearchSubmitButton from './GlobalBookSearchSubmitButton'; import GlobalBookSearchKeywordForm from './GlobalBookSearchKeywordForm'; import GlobalSearchSegment from './GlobalSearchSegment'; diff --git a/frontend/app/components/global-books/GlobalBookListComponent.tsx b/frontend/app/components/global-books/GlobalBookListComponent.tsx index fc134d40..e3d6c146 100644 --- a/frontend/app/components/global-books/GlobalBookListComponent.tsx +++ b/frontend/app/components/global-books/GlobalBookListComponent.tsx @@ -4,7 +4,6 @@ import type { SearchBooksParams } from 'client/client.schemas'; import React from 'react'; import NoQueryComponent from './NoQueryComponent'; import { Stack } from '@mantine/core'; -import BookSearchComponent from '../book-search/BookSearchComponent'; import ContentsHeader from '../common/pagination/ContentsHeader'; import ErrorComponent from '../common/error/ErrorComponent'; import GlobalBookCards from './GlobalBookCards'; diff --git a/frontend/app/components/global-books/GlobalBookSearchComponent.tsx b/frontend/app/components/global-books/GlobalBookSearchComponent.tsx index cd610055..d6a53e8a 100644 --- a/frontend/app/components/global-books/GlobalBookSearchComponent.tsx +++ b/frontend/app/components/global-books/GlobalBookSearchComponent.tsx @@ -1,9 +1,7 @@ import type { UseFormReturnType } from '@mantine/form'; import type { SearchBooksParams } from 'client/client.schemas'; import React from 'react'; -import BookSearchModeButton from '../book-search/BookSearchModeButton'; import GlobalBookSearchModeButton from './GlobalBookSearchModeButton'; -import GlobalSearchSegment from './GlobalSearchSegment'; import GlobalBookDetailSearchForm from './GlobalBookDetailSearchForm'; import GlobalBookKeywordSearchForm from './GlobalBookKeywordSearchForm'; diff --git a/frontend/app/components/global-books/GlobalPaginationComponent.tsx b/frontend/app/components/global-books/GlobalPaginationComponent.tsx index b9cfa045..552e856c 100644 --- a/frontend/app/components/global-books/GlobalPaginationComponent.tsx +++ b/frontend/app/components/global-books/GlobalPaginationComponent.tsx @@ -1,5 +1,4 @@ import { Center, Pagination } from '@mantine/core'; -import React from 'react'; interface GlobalPaginationComponentProps { totalNum: number; diff --git a/frontend/app/components/global-books/NoQueryComponent.tsx b/frontend/app/components/global-books/NoQueryComponent.tsx index 992b12c6..61690fec 100644 --- a/frontend/app/components/global-books/NoQueryComponent.tsx +++ b/frontend/app/components/global-books/NoQueryComponent.tsx @@ -1,5 +1,4 @@ import { Alert, Center } from '@mantine/core'; -import React from 'react'; const NoQueryComponent = () => { return ( diff --git a/frontend/app/components/header/HeaderBookMenu.tsx b/frontend/app/components/header/HeaderBookMenu.tsx index adb501c0..2f3eff70 100644 --- a/frontend/app/components/header/HeaderBookMenu.tsx +++ b/frontend/app/components/header/HeaderBookMenu.tsx @@ -3,8 +3,6 @@ import { useNavigate } from '@remix-run/react'; import { FaBook } from 'react-icons/fa'; import { LuBookCopy } from 'react-icons/lu'; import { AiOutlineGlobal } from 'react-icons/ai'; -import { userAtom } from '~/stores/userAtom'; -import { useAtom } from 'jotai'; const HeaderBookMenu = () => { const navigate = useNavigate(); diff --git a/frontend/app/routes/home.global._index/route.tsx b/frontend/app/routes/home.global._index/route.tsx index ae472d3b..b013b49a 100644 --- a/frontend/app/routes/home.global._index/route.tsx +++ b/frontend/app/routes/home.global._index/route.tsx @@ -1,4 +1,4 @@ -import React, { useState } from 'react'; +import { useState } from 'react'; import { useDisclosure } from '@mantine/hooks'; import { json } from '@remix-run/cloudflare'; import type { LoaderFunctionArgs } from '@remix-run/cloudflare'; diff --git a/frontend/app/routes/home.global/route.tsx b/frontend/app/routes/home.global/route.tsx index 4f57b20e..fe0fab09 100644 --- a/frontend/app/routes/home.global/route.tsx +++ b/frontend/app/routes/home.global/route.tsx @@ -1,7 +1,5 @@ import { Outlet } from '@remix-run/react'; -import React from 'react'; - const GlobalLayout = () => { return ; };