pwa: update next-pwa to latest maintained version (#250)

This commit is contained in:
Huang Xin
2025-01-25 18:45:43 +01:00
committed by GitHub
parent 4ec4b22038
commit 8fd92efbc7
7 changed files with 531 additions and 723 deletions
+5 -1
View File
@@ -1,4 +1,4 @@
import { useRouter } from 'next/navigation';
import { useRouter, redirect } from 'next/navigation';
import { isPWA, isWebAppPlatform } from '@/services/environment';
import { BOOK_IDS_SEPARATOR } from '@/services/constants';
@@ -21,3 +21,7 @@ export const navigateToReader = (
export const navigateToLibrary = (router: ReturnType<typeof useRouter>) => {
router.push('/library');
};
export const redirectToLibrary = () => {
redirect('/library');
};