Skip to content

Commit

Permalink
underscoreを削除
Browse files Browse the repository at this point in the history
  • Loading branch information
mehm8128 committed Mar 23, 2024
1 parent f16a7cb commit c05654f
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 21 deletions.
44 changes: 30 additions & 14 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions workspaces/admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,12 @@
"react": "18.2.0",
"react-dom": "18.2.0",
"regexparam": "3.0.0",
"underscore": "1.13.6",
"unicode-collation-algorithm2": "0.5.0",
"yup": "1.4.0",
"zustand": "4.5.2"
},
"devDependencies": {
"@types/react": "18.2.0",
"@types/react-dom": "18.2.1",
"@types/underscore": "1.11.15"
"@types/react-dom": "18.2.1"
}
}
3 changes: 1 addition & 2 deletions workspaces/admin/src/pages/AuthorListPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import {
} from '@chakra-ui/react';
import { useFormik } from 'formik';
import { useId, useMemo, useState } from 'react';
import _ from 'underscore';
import { create } from 'zustand';

import { useAuthorList } from '../../features/authors/hooks/useAuthorList';
Expand Down Expand Up @@ -184,7 +183,7 @@ export const AuthorListPage: React.FC = () => {
</Tr>
</Thead>
<Tbody>
{_.map(filteredAuthorList, (author) => (
{filteredAuthorList.map((author) => (
<Tr key={author.id}>
<Td textAlign="center" verticalAlign="middle">
<Button colorScheme="teal" onClick={() => modalState.openDetail(author.id)} variant="solid">
Expand Down
3 changes: 1 addition & 2 deletions workspaces/admin/src/pages/BookListPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import {
} from '@chakra-ui/react';
import { useFormik } from 'formik';
import { useId, useMemo, useState } from 'react';
import _ from 'underscore';
import { create } from 'zustand';

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

0 comments on commit c05654f

Please sign in to comment.