fix(website): Fix type specifier (#6623)

These should be `URL | Route<string>` I believe.
This commit is contained in:
Jamil
2024-09-06 10:30:16 -07:00
committed by GitHub
parent 03cbe660bb
commit 990bc17f6d
2 changed files with 2 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ export default function Banner({
children,
}: {
active: boolean;
href?: Route<string> | UrlObject;
href?: URL | Route<string>;
bgColor?: string;
textColor?: string;
children: React.ReactNode;

View File

@@ -27,7 +27,7 @@ function Card({
return <div className={container}>{children}</div>;
}
function Button({ text, href }: { text: string; href: Route<string> | URL }) {
function Button({ text, href }: { text: string; href: URL | Route<string> }) {
return (
<Link href={href}>
<button className="group transform transition duration-50 hover:ring-1 hover:ring-neutral-900 inline-flex mt-6 gap-1 items-center bg-neutral-900 rounded-full text-neutral-50 text-sm px-5 py-2.5">