Skip to content

Commit 0142e38

Browse files
committed
fix remaining eslint rules and remove some comments
1 parent 498d62e commit 0142e38

File tree

6 files changed

+0
-60
lines changed

6 files changed

+0
-60
lines changed

src/app/advSearch/page.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ function SearchBarContent() {
1616
const searchParams = useSearchParams();
1717
const search = searchParams.get('q');
1818

19-
// URL -> `/dashboard?search=my-project`
20-
// `search` -> 'my-project'
2119
return (
2220
<div>
2321
<div>

src/app/search/page.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ function SearchBarContent() {
1818
const searchParams = useSearchParams();
1919
const search = searchParams.get('q');
2020

21-
// URL -> `/dashboard?search=my-project`
22-
// `search` -> 'my-project'
2321
return (
2422
<div>
2523
<div>

src/components/ColorSchemeToggle/ColorSchemeToggle.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
'use client';
22

33
import cx from 'clsx';
4-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
54
import { ActionIcon, Group, useMantineColorScheme, useComputedColorScheme } from '@mantine/core';
65
import { IconSun, IconMoon } from '@tabler/icons-react';
76
import classes from './ActionToggle.module.css';
@@ -22,10 +21,5 @@ export function ColorSchemeToggle() {
2221
<IconMoon className={cx(classes.icon, classes.dark)} stroke={1.5} />
2322
</ActionIcon>
2423
</Group>
25-
// <Group justify="center">
26-
// <Button onClick={() => setColorScheme('light')}>Light</Button>
27-
// <Button onClick={() => setColorScheme('dark')}>Dark</Button>
28-
// <Button onClick={() => setColorScheme('auto')}>Auto</Button>
29-
// </Group>
3024
);
3125
}
Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
'use client';
22

3-
/* eslint-disable arrow-body-style */
4-
53
import React, { useEffect, useState } from 'react';
6-
// import { useSearchParams } from 'next/navigation';
74
import ListOfCards from './VerticalListForm';
85
import { Book } from '@/src/types/api';
96
import { useAuthContext } from '@/src/firebase/context';
@@ -15,8 +12,6 @@ interface VerticalListProps {
1512
}
1613

1714
export default function BooksByBookshelfPage(params: VerticalListProps) {
18-
// const searchParams = useSearchParams();
19-
// const bookshelfId = searchParams.get('q');
2015
const { bookshelfId } = params;
2116

2217
const { user } = useAuthContext();
@@ -57,37 +52,3 @@ export default function BooksByBookshelfPage(params: VerticalListProps) {
5752
</div>
5853
);
5954
}
60-
61-
// const MyComponent: React.FC = () => {
62-
// // eslint-disable-next-line @typescript-eslint/no-unused-vars
63-
// const [items, setItems] = useState<Item[]>(generateItems(10));
64-
65-
// return <ListOfCards items={items} />;
66-
// };
67-
68-
// interface Item {
69-
// id: string;
70-
// image: string;
71-
// title: string;
72-
// text: string;
73-
// }
74-
75-
// const generateItems = (count: number): Item[] => {
76-
// return Array.from({ length: count }, (_, i) => ({
77-
// id: `${i + 1}`,
78-
// image: 'https://sun9-16.userapi.com/impf/c637718/v637718963/51fd9/nACCl1pDqvM.jpg?size=222x314&quality=96&sign=e71b016beb5daa4c8f7a968c83636cf2&type=album',
79-
// title: `SuperJet ${i + 100}`,
80-
// text: `This is the text for item ${i + 1}`,
81-
// }));
82-
// };
83-
84-
// const MyComponent: React.FC = () => {
85-
// // eslint-disable-next-line @typescript-eslint/no-unused-vars
86-
// const [items, setItems] = useState<Item[]>(generateItems(10));
87-
88-
// return (
89-
// <ListOfCards items={items} />
90-
// );
91-
// };
92-
93-
// export default MyComponent;

src/components/VerticalList/VerticalListForm.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
/* eslint-disable @typescript-eslint/no-unused-vars */
2-
31
'use client';
42

53
import { Text, Button, Stack, Card, Group, Image, AspectRatio } from '@mantine/core';
64
import { useRef } from 'react';
7-
import Link from 'next/link';
85
import classes from './VerticalListForm.module.css';
96
import { Book } from '@/src/types/api';
107
import { useAuthContext } from '@/src/firebase/context';

src/components/VerticalList/VerticalListSearch.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
'use client';
22

3-
/* eslint-disable arrow-body-style */
4-
53
import React, { useEffect, useState } from 'react';
6-
// import { useSearchParams } from 'next/navigation';
74
import { Loader } from '@mantine/core';
85
import ListOfCards from './VerticalListForm';
96
import { Book } from '@/src/types/api';
@@ -16,18 +13,13 @@ const delay = (ms: number | undefined) =>
1613
setTimeout(resolve, ms);
1714
});
1815

19-
// eslint-disable-next-line max-len
2016
export default function VerticalListSearch({
2117
ISBN,
2218
isAdv,
2319
}: {
2420
ISBN: string | null;
2521
isAdv?: boolean;
2622
}) {
27-
// const searchParams = useSearchParams();
28-
// const bookshelfId = searchParams.get('q');
29-
// const { ISBN } = params;
30-
3123
const { user } = useAuthContext();
3224
const [books, setBooks] = useState<Book[]>([]);
3325
const [loading, setLoading] = useState<boolean>(true);

0 commit comments

Comments
 (0)