Skip to content

Commit

Permalink
feat: add nprogress bar for page transition indication (#2026)
Browse files Browse the repository at this point in the history
Co-authored-by: Nick Taylor <[email protected]>
  • Loading branch information
OgDev-01 and nickytonline authored Nov 9, 2023
1 parent b261253 commit 828ca4d
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
25 changes: 25 additions & 0 deletions npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
"echarts": "^5.4.1",
"echarts-for-react": "^3.0.2",
"next": "^13.4.7",
"nextjs-progressbar": "^0.0.16",
"octokit": "^2.0.14",
"path-to-regexp": "^6.2.1",
"posthog-js": "^1.83.0",
Expand Down
3 changes: 2 additions & 1 deletion pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import Head from "next/head";
import { useRouter } from "next/router";
import { SessionContextProvider } from "@supabase/auth-helpers-react";
import { SWRConfig } from "swr";
import NextNProgress from "nextjs-progressbar";

import posthog from "posthog-js";
import { PostHogProvider } from "posthog-js/react";
Expand Down Expand Up @@ -146,7 +147,7 @@ function MyApp({ Component, pageProps }: ComponentWithPageLayout) {
provider: localStorageProvider,
}}
>
{/* <Toaster position="top-center" /> */}
<NextNProgress options={{ showSpinner: false }} color="hsla(19, 100%, 50%, 1)" height={4} />
<Toaster />
<SessionContextProvider supabaseClient={supabaseClient} initialSession={pageProps.initialSession}>
<PostHogProvider client={posthog}>
Expand Down

0 comments on commit 828ca4d

Please sign in to comment.