diff --git a/src/components/forms/NewBook.tsx b/src/components/forms/NewBook.tsx index 9fbf674..6c29b10 100644 --- a/src/components/forms/NewBook.tsx +++ b/src/components/forms/NewBook.tsx @@ -113,12 +113,12 @@ export function FormNewBook() { handleImage(e, setCropData, onOpen); } - // function handleRatingChange(newRating: number) { - // setBooks((books) => ({ - // ...books, - // rating: newRating, - // })); - // } + function handleRatingChange(newRating: number) { + setBooks((books) => ({ + ...books, + rating: newRating, + })); + } function getCropData() { getCrop(crop, setPreviewImg, books, setBooks, onClose); @@ -551,7 +551,7 @@ export function FormNewBook() { placeholder='Elija un Formato' /> - + Calificación{' '} @@ -560,31 +560,11 @@ export function FormNewBook() { -