Skip to content

Commit d910975

Browse files
authored
feat: Add top loader to indicate action (#9150)
1 parent c4f30be commit d910975

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

app/changelog/layout.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {ReactNode} from 'react';
55
import {Theme} from '@radix-ui/themes';
66
import type {Metadata} from 'next';
77
import {Rubik} from 'next/font/google';
8+
import NextTopLoader from 'nextjs-toploader';
89

910
import {Navbar} from 'sentry-docs/components/changelog/navbar';
1011

@@ -21,7 +22,8 @@ export const metadata: Metadata = {
2122
export default function ChangelogLayout({children}: {children: ReactNode}) {
2223
return (
2324
<Theme accentColor="violet" grayColor="sand" radius="large" scaling="95%">
24-
<div className={`${rubik.className} font-sans`}>
25+
<NextTopLoader color="#8d5494" />
26+
<div className={`${rubik.className}`}>
2527
<Navbar />
2628
<div className="bg-gray-100">{children}</div>
2729
<div className="w-full mx-auto h-16 relative bg-darkPurple">

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"next": "14.0.2",
4949
"next-auth": "^4.24.5",
5050
"next-mdx-remote": "^4.4.1",
51+
"nextjs-toploader": "^1.6.6",
5152
"platformicons": "^5.9.2",
5253
"prism-sentry": "^1.0.2",
5354
"prismjs": "^1.27.0",

yarn.lock

+19
Original file line numberDiff line numberDiff line change
@@ -2487,6 +2487,11 @@
24872487
dependencies:
24882488
undici-types "~5.26.4"
24892489

2490+
"@types/nprogress@^0.2.2":
2491+
version "0.2.3"
2492+
resolved "https://registry.yarnpkg.com/@types/nprogress/-/nprogress-0.2.3.tgz#b2150b054a13622fabcba12cf6f0b54c48b14287"
2493+
integrity sha512-k7kRA033QNtC+gLc4VPlfnue58CM1iQLgn1IMAU8VPHGOj7oIHPp9UlhedEnD/Gl8evoCjwkZjlBORtZ3JByUA==
2494+
24902495
"@types/parse-json@^4.0.0":
24912496
version "4.0.2"
24922497
resolved "https://registry.yarnpkg.com/@types/parse-json/-/parse-json-4.0.2.tgz#5950e50960793055845e956c427fc2b0d70c5239"
@@ -7711,6 +7716,15 @@ [email protected]:
77117716
"@next/swc-win32-ia32-msvc" "14.0.2"
77127717
"@next/swc-win32-x64-msvc" "14.0.2"
77137718

7719+
nextjs-toploader@^1.6.6:
7720+
version "1.6.6"
7721+
resolved "https://registry.yarnpkg.com/nextjs-toploader/-/nextjs-toploader-1.6.6.tgz#ee7a332f8fc938ea774f1fac2dd29b54ec81b333"
7722+
integrity sha512-LKow/aV28/DLhj4yH1E8ydF/I5QDNsb5NqlbsXBaIVFrmZ9/OGHyxPLdumvPE2IOYoQdvJ4XWoaCA1v7aivYBg==
7723+
dependencies:
7724+
"@types/nprogress" "^0.2.2"
7725+
nprogress "^0.2.0"
7726+
prop-types "^15.8.1"
7727+
77147728
node-fetch@^2.6.7, node-fetch@^2.6.9:
77157729
version "2.7.0"
77167730
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.7.0.tgz#d0f0fa6e3e2dc1d27efcd8ad99d550bda94d187d"
@@ -7750,6 +7764,11 @@ npm-run-path@^4.0.1:
77507764
dependencies:
77517765
path-key "^3.0.0"
77527766

7767+
nprogress@^0.2.0:
7768+
version "0.2.0"
7769+
resolved "https://registry.yarnpkg.com/nprogress/-/nprogress-0.2.0.tgz#cb8f34c53213d895723fcbab907e9422adbcafb1"
7770+
integrity sha512-I19aIingLgR1fmhftnbWWO3dXc0hSxqHQHQb3H8m+K3TnEn/iSeTZZOyvKXWqQESMwuUVnatlCnZdLBZZt2VSA==
7771+
77537772
nth-check@^2.0.0, nth-check@^2.0.1:
77547773
version "2.1.1"
77557774
resolved "https://registry.yarnpkg.com/nth-check/-/nth-check-2.1.1.tgz#c9eab428effce36cd6b92c924bdb000ef1f1ed1d"

0 commit comments

Comments
 (0)