diff --git a/apps/website/src/app/docs/packages/[package]/[version]/layout.tsx b/apps/website/src/app/docs/packages/[package]/[version]/layout.tsx index 225002d21..da3b4dc70 100644 --- a/apps/website/src/app/docs/packages/[package]/[version]/layout.tsx +++ b/apps/website/src/app/docs/packages/[package]/[version]/layout.tsx @@ -70,11 +70,11 @@ export default async function PackageLayout({ children, params }: PropsWithChild return ( - +
-
+
diff --git a/apps/website/src/components/Banner.tsx b/apps/website/src/components/Banner.tsx index 9447b09fb..359d5763d 100644 --- a/apps/website/src/components/Banner.tsx +++ b/apps/website/src/components/Banner.tsx @@ -1,6 +1,8 @@ -export function Banner() { +import type { HTMLAttributes } from 'react'; + +export function Banner({ className, ...props }: HTMLAttributes) { return ( -
+
You are reading the documentation for the next version of discord.js. Documentation for v13/v14+ has been moved to{' '} diff --git a/apps/website/src/components/ItemLink.tsx b/apps/website/src/components/ItemLink.tsx index ba5ac7183..1a2876558 100644 --- a/apps/website/src/components/ItemLink.tsx +++ b/apps/website/src/components/ItemLink.tsx @@ -3,13 +3,13 @@ import type { LinkProps } from 'next/link'; import Link from 'next/link'; import { usePathname } from 'next/navigation'; -import type { PropsWithChildren } from 'react'; +import type { AnchorHTMLAttributes, PropsWithChildren, RefAttributes } from 'react'; import { useCurrentPathMeta } from '~/hooks/useCurrentPathMeta'; export interface ItemLinkProps extends Omit, - React.RefAttributes, - Omit, keyof LinkProps> { + RefAttributes, + Omit, keyof LinkProps> { className?: string; /**