Skip to content

Commit

Permalink
fix: correction of an error in the form
Browse files Browse the repository at this point in the history
  • Loading branch information
Franqsanz committed Sep 28, 2023
1 parent 40cc9a7 commit 56ed420
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .lintstagedrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"**/*.(json|yml|html)": ["prettier --write"],
"*.{ts,tsx,html}": ["prettier --write", "eslint --fix"]
"*.{ts,tsx}": ["prettier --write", "eslint --fix"]
}
2 changes: 1 addition & 1 deletion src/components/forms/NewBook.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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' }}
/>
Expand Down
3 changes: 1 addition & 2 deletions src/pages/Book.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'));

Expand All @@ -40,8 +41,6 @@ export default function Book() {

const { data } = useBook(pathUrl);

console.log(data.authors);

function handleGoBack() {
navigate(-1);
}
Expand Down

1 comment on commit 56ed420

@vercel
Copy link

@vercel vercel bot commented on 56ed420 Sep 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

xbu – ./

xbu-git-main-franqsanz.vercel.app
xbu.vercel.app
xbu-franqsanz.vercel.app

Please sign in to comment.