Open nguyenhoaikhang37 opened 1 year ago
You forgot to commit the new design
You forgot to commit the new design
oh, thanks! When building on Vercel, I got an error with husky.
Keep up the good work 👍
Final result: ✅
Your TS migration is on-point. I don't have much to offer except a couple of minor things:
Book
interface. For example:const handleAdd = (
values: Omit<Book, 'id'> // which ends up with { title, author, genre }
) => { ... }
... or you can define your own set of form values:
export type BookFormValues = {
title: string;
...
}
const defaultValues: BookFormValues = { ... }
... or you can use type inference:
export type BookFormValues = typeof defaultValues;
Different approaches.
// Demo link https://df-frontend-2023-pwyg.vercel.app/
// Any notes for reviewers If the code lacks clarify or if there are any issue with the application, please don't hesitate to provide feedback. I'm open to suggestions and eager to improve. Thanks a lot <3