refactor: improve readability of BookGrid and BookList components by formatting props for better clarity

This commit is contained in:
Julien Froidefond
2025-12-07 18:49:31 +01:00
parent 181240cd5f
commit 90b213a407

View File

@@ -132,9 +132,19 @@ export function PaginatedBookGrid({
</div> </div>
{viewMode === "grid" ? ( {viewMode === "grid" ? (
<BookGrid books={books} onBookClick={handleBookClick} isCompact={isCompact} onRefresh={onRefresh} /> <BookGrid
books={books}
onBookClick={handleBookClick}
isCompact={isCompact}
onRefresh={onRefresh}
/>
) : ( ) : (
<BookList books={books} onBookClick={handleBookClick} isCompact={isCompact} onRefresh={onRefresh} /> <BookList
books={books}
onBookClick={handleBookClick}
isCompact={isCompact}
onRefresh={onRefresh}
/>
)} )}
<div className="flex flex-col items-center gap-4 sm:flex-row sm:justify-between"> <div className="flex flex-col items-center gap-4 sm:flex-row sm:justify-between">