Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Kosei805 committed Nov 9, 2024
1 parent 1772c3c commit 120f75f
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 18 deletions.
3 changes: 0 additions & 3 deletions frontend/app/components/global-books/GlobalBookCard.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
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 {
book: SearchBooks200BooksItem;
}

const GlobalBookCard = ({ book }: GlobalBookCardProps) => {
const [user] = useAtom(userAtom);
return (
<Card shadow="sm" radius="md" pb="xs" withBorder>
<Card.Section withBorder inheritPadding py="xs">
Expand Down
1 change: 0 additions & 1 deletion frontend/app/components/global-books/GlobalBookCards.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Center, Pagination } from '@mantine/core';
import React from 'react';

interface GlobalPaginationComponentProps {
totalNum: number;
Expand Down
1 change: 0 additions & 1 deletion frontend/app/components/global-books/NoQueryComponent.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Alert, Center } from '@mantine/core';
import React from 'react';

const NoQueryComponent = () => {
return (
Expand Down
2 changes: 0 additions & 2 deletions frontend/app/components/header/HeaderBookMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/routes/home.global._index/route.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
2 changes: 0 additions & 2 deletions frontend/app/routes/home.global/route.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { Outlet } from '@remix-run/react';

import React from 'react';

const GlobalLayout = () => {
return <Outlet />;
};
Expand Down

0 comments on commit 120f75f

Please sign in to comment.