diff --git a/.lintstagedrc b/.lintstagedrc index 84f1a80..76bfe5d 100644 --- a/.lintstagedrc +++ b/.lintstagedrc @@ -1,4 +1,4 @@ { "**/*.(json|yml|html)": ["prettier --write"], - "*.{ts,tsx,html}": ["prettier --write", "eslint --fix"] + "*.{ts,tsx}": ["prettier --write", "eslint --fix"] } diff --git a/src/components/forms/NewBook.tsx b/src/components/forms/NewBook.tsx index 5ca0581..04dedb9 100644 --- a/src/components/forms/NewBook.tsx +++ b/src/components/forms/NewBook.tsx @@ -326,7 +326,7 @@ export function FormNewBook() { bg={bgColorInput} size={{ base: 'md', md: 'lg' }} value={books.authors} - name='author' + name='authors' onChange={handleChange} _focus={{ bg: 'transparent' }} /> diff --git a/src/pages/Book.tsx b/src/pages/Book.tsx index dd618c2..c9030f1 100644 --- a/src/pages/Book.tsx +++ b/src/pages/Book.tsx @@ -23,6 +23,7 @@ import { MainHead } from '../components/Head'; import { MyTag } from '../components/MyTag'; import { ModalShare } from '../components/ModalShare'; import { MyLink } from '../components/MyLink'; + const Categories = lazy(() => import('../components/Categories')); const RelatedPost = lazy(() => import('../components/RelatedPost')); @@ -40,8 +41,6 @@ export default function Book() { const { data } = useBook(pathUrl); - console.log(data.authors); - function handleGoBack() { navigate(-1); }