feat(bookReader): autoorientation, showcontrols on click, no more toast on load
This commit is contained in:
@@ -13,17 +13,6 @@ interface ClientBookWrapperProps {
|
||||
|
||||
export function ClientBookWrapper({ book, pages }: ClientBookWrapperProps) {
|
||||
const router = useRouter();
|
||||
const { toast } = useToast();
|
||||
|
||||
useEffect(() => {
|
||||
// Si le livre a une progression de lecture, on l'affiche dans un toast
|
||||
if (book.readProgress && book.readProgress.page && book.readProgress.page > 0) {
|
||||
toast({
|
||||
title: "Reprise de la lecture",
|
||||
description: `Reprise à la page ${book.readProgress.page}`,
|
||||
});
|
||||
}
|
||||
}, [book.readProgress, toast]);
|
||||
|
||||
const handleCloseReader = () => {
|
||||
router.back();
|
||||
|
||||
Reference in New Issue
Block a user