mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 09:03:29 +01:00
refactor: remove banner
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
import type { HTMLAttributes } from 'react';
|
||||
|
||||
export function Banner({ className, ...props }: HTMLAttributes<HTMLDivElement>) {
|
||||
return (
|
||||
<div className={`bg-blurple px-4 py-2 text-center text-sm text-white ${className}`} {...props}>
|
||||
You are reading the documentation for the <strong>next</strong> version of discord.js. Documentation for v13/v14+
|
||||
has been moved to{' '}
|
||||
<strong>
|
||||
<a href="https://old.discordjs.dev/#/docs" rel="external noopener noreferrer" target="_blank">
|
||||
old.discordjs.dev
|
||||
</a>
|
||||
</strong>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -16,16 +16,6 @@ export default function PackageSelect() {
|
||||
|
||||
const packageMenuItems = useMemo(
|
||||
() =>
|
||||
// <a href="https://old.discordjs.dev/#/docs/discord.js" key="discord.js">
|
||||
// <MenuItem
|
||||
// className="my-0.5 rounded bg-white p-3 text-sm outline-none active:bg-light-800 dark:bg-dark-600 hover:bg-light-700 focus:ring focus:ring-width-2 focus:ring-blurple dark:active:bg-dark-400 dark:hover:bg-dark-500"
|
||||
// id="discord-js"
|
||||
// onClick={() => packageMenu.setOpen(false)}
|
||||
// state={packageMenu}
|
||||
// >
|
||||
// discord.js
|
||||
// </MenuItem>
|
||||
// </a>,
|
||||
PACKAGES.map((pkg, idx) => (
|
||||
<Link href={`/docs/packages/${pkg}/main`} key={`${pkg}-${idx}`}>
|
||||
<MenuItem
|
||||
|
||||
Reference in New Issue
Block a user