refactor: improve readability of BookGrid and BookList components by formatting props for better clarity
This commit is contained in:
@@ -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">
|
||||||
|
|||||||
Reference in New Issue
Block a user