Skip to content
This repository was archived by the owner on Oct 17, 2025. It is now read-only.

Commit 9364907

Browse files
committed
underscore 消し
1 parent dd38de2 commit 9364907

4 files changed

Lines changed: 5 additions & 21 deletions

File tree

pnpm-lock.yaml

Lines changed: 2 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

workspaces/admin/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,11 @@
1919
"react": "18.2.0",
2020
"react-dom": "18.2.0",
2121
"regexparam": "3.0.0",
22-
"underscore": "1.13.6",
2322
"yup": "1.4.0",
2423
"zustand": "4.5.2"
2524
},
2625
"devDependencies": {
2726
"@types/react": "18.2.0",
28-
"@types/react-dom": "18.2.1",
29-
"@types/underscore": "1.11.15"
27+
"@types/react-dom": "18.2.1"
3028
}
3129
}

workspaces/admin/src/pages/AuthorListPage/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import {
1919
} from '@chakra-ui/react';
2020
import { useFormik } from 'formik';
2121
import { useId, useMemo, useState } from 'react';
22-
import _ from 'underscore';
2322
import { create } from 'zustand';
2423

2524
import { useAuthorList } from '../../features/authors/hooks/useAuthorList';
@@ -184,7 +183,7 @@ export const AuthorListPage: React.FC = () => {
184183
</Tr>
185184
</Thead>
186185
<Tbody>
187-
{_.map(filteredAuthorList, (author) => (
186+
{filteredAuthorList.map((author) => (
188187
<Tr key={author.id}>
189188
<Td textAlign="center" verticalAlign="middle">
190189
<Button colorScheme="teal" onClick={() => modalState.openDetail(author.id)} variant="solid">

workspaces/admin/src/pages/BookListPage/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import {
1919
} from '@chakra-ui/react';
2020
import { useFormik } from 'formik';
2121
import { useId, useMemo, useState } from 'react';
22-
import _ from 'underscore';
2322
import { create } from 'zustand';
2423

2524
import { useBookList } from '../../features/books/hooks/useBookList';
@@ -216,7 +215,7 @@ export const BookListPage: React.FC = () => {
216215
</Tr>
217216
</Thead>
218217
<Tbody>
219-
{_.map(filteredBookList, (book) => (
218+
{filteredBookList.map((book) => (
220219
<Tr key={book.id}>
221220
<Td textAlign="center" verticalAlign="middle">
222221
<Button colorScheme="teal" onClick={() => modalState.openDetail(book.id)} variant="solid">

0 commit comments

Comments
 (0)