pwa: update next-pwa to latest maintained version (#250)
This commit is contained in:
@@ -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');
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user