chore: add custom n-progress component to fix unwanted n-progress trigger issues. (#4965)

* chore: add n-progress lib.

* chore: prevent unwanted n-progress from projects and notifications.

* fix: lint errors.
This commit is contained in:
Prateek Shourya 2024-06-28 20:39:19 +05:30 committed by GitHub
parent 209dc57307
commit 626464513d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 463 additions and 12 deletions

View file

@ -1,6 +1,6 @@
// type
import { AppRouterInstance } from "next/dist/shared/lib/app-router-context.shared-runtime";
// router from next-nprogress-bar
import { useRouter } from "next-nprogress-bar";
import { useRouter } from "@/lib/n-progress";
export const useAppRouter = (): AppRouterInstance => useRouter();