Skip to content

Commit

Permalink
Remove unused SSR handler. (#6873)
Browse files Browse the repository at this point in the history
### Description

Removing an unused dependency. It was throwing out logs that finally got
under my skin enough to fix.

Note: CI failure is unrelated. It only ran because the pnpm-lock.yaml changed for an unrelated dependency.
  • Loading branch information
anthonyshew committed Jan 2, 2024
1 parent 45a85c7 commit 069497b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 42 deletions.
1 change: 0 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"@headlessui/react": "^1.7.17",
"@heroicons/react": "1.0.6",
"@mdx-js/react": "^3.0.0",
"@react-aria/ssr": "3.9.0",
"@react-spring/web": "^9.7.3",
"@sentry/nextjs": "^7.88.0",
"@vercel/analytics": "^0.1.1",
Expand Down
41 changes: 19 additions & 22 deletions docs/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import "../styles.css";
import "../custom.css";

import { SSRProvider } from "@react-aria/ssr";
import type { AppProps } from "next/app";
import type { ReactNode } from "react";
import { Analytics } from "@vercel/analytics/react";
Expand All @@ -26,28 +25,26 @@ if (typeof window !== "undefined" && !("requestIdleCallback" in window)) {

export default function Nextra({ Component, pageProps }: NextraAppProps) {
return (
<SSRProvider>
<>
{/**
* Globally defined svg linear gradient, for use in icons
*/}
<svg height="0px" width="0px">
<defs>
<linearGradient
id="pink-gradient"
x1="0%"
x2="100%"
y1="0%"
y2="100%"
>
<stop offset="0%" stopColor="rgba(156, 81, 161, 1)" />
<stop offset="70%" stopColor="rgba(255, 30, 86, 1)" />
</linearGradient>
</defs>
</svg>
</>
<>
{/**
* Globally defined svg linear gradient, for use in icons
*/}
<svg height="0px" width="0px">
<defs>
<linearGradient
id="pink-gradient"
x1="0%"
x2="100%"
y1="0%"
y2="100%"
>
<stop offset="0%" stopColor="rgba(156, 81, 161, 1)" />
<stop offset="70%" stopColor="rgba(255, 30, 86, 1)" />
</linearGradient>
</defs>
</svg>
<Component {...pageProps} />
<Analytics />
</SSRProvider>
</>
);
}
19 changes: 0 additions & 19 deletions pnpm-lock.yaml

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

1 comment on commit 069497b

@vercel
Copy link

@vercel vercel bot commented on 069497b Jan 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.