diff --git a/src/app/books/components/book-card.tsx b/src/app/books/components/book-card.tsx index 44fce6b..66167ed 100644 --- a/src/app/books/components/book-card.tsx +++ b/src/app/books/components/book-card.tsx @@ -3,6 +3,7 @@ import Image from 'next/image' import Link from 'next/link' import { BookCardForm } from '@/app/books/components/book-card-form' +import { ScrollUp } from '@/components/scroll-up' import { BookResponse } from '@/core/book/dto/responses/book.response' import { UserResponse } from '@/core/user/dto/responses/user.response' @@ -32,6 +33,7 @@ export function BookCard(properties: BookCardProperties) { return ( <> + window.document.scrollingElement?.scrollTo(0, 0), []) + + return null +}