diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 817b821..d60e063 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -33,3 +33,10 @@ In order to prepare a production-ready version of the app, run: ```sh pnpm build # or: pnpm run build ``` + +## Note on Shadcn CLI + +The shadcn CLI which is used to install components using commands like `pnpm dlx shadcn@latest add card` uses a different file name casing style. +While the CLI uses `kebab-case.tsx` as the file name for components, e.g. `alert-dialog.tsx`, we would use `PascalCase.tsx`, e.g. `AlertDialog.tsx`. + +If you are adding new Shadcn components to the project using the CLI, please make sure to change the name to the correct casing (PascalCase). diff --git a/app/components/BookCard/BookCard.tsx b/app/components/BookCard/BookCard.tsx index a3d1efe..b8533a6 100644 --- a/app/components/BookCard/BookCard.tsx +++ b/app/components/BookCard/BookCard.tsx @@ -11,7 +11,7 @@ function BookCard({ book }: BookCardProps) { const [searchParams] = useSearchParams(); return ( -
+
diff --git a/app/components/BookCover/BookCover.tsx b/app/components/BookCover/BookCover.tsx index 316b342..50559bc 100644 --- a/app/components/BookCover/BookCover.tsx +++ b/app/components/BookCover/BookCover.tsx @@ -12,7 +12,7 @@ function BookCover({ book }: BookCoverProps) { className="w-full object-contain px-6 py-3" /> ) : ( -

+

No cover available

); diff --git a/app/components/FavoriteButton/FavoriteButton.tsx b/app/components/FavoriteButton/FavoriteButton.tsx index 5422231..26c74e3 100644 --- a/app/components/FavoriteButton/FavoriteButton.tsx +++ b/app/components/FavoriteButton/FavoriteButton.tsx @@ -30,7 +30,7 @@ function FavoriteButton({ book }: FavoriteButtonProps) { return (