Skip to content

Commit e61b55f

Browse files
committed
fix type issues
1 parent bc3d282 commit e61b55f

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

apps/docs/app/docs/[[...slug]]/page.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { DocsBody, DocsPage, DocsTitle } from "fumadocs-ui/page";
2+
import type { Metadata } from "next";
23
import { notFound } from "next/navigation";
34
import { DocsFooter } from "@/components/docs-footer";
45
import { Feedback } from "@/components/feedback";
@@ -50,7 +51,7 @@ export function generateStaticParams() {
5051

5152
export async function generateMetadata(props: {
5253
params: Promise<{ slug?: string[] }>;
53-
}) {
54+
}): Promise<Metadata> {
5455
const params = await props.params;
5556
const page = source.getPage(params.slug);
5657
if (!page) {

apps/docs/app/not-found.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default function NotFound() {
1313
return (
1414
<div className="flex min-h-screen flex-col bg-neutral-950">
1515
<Navbar />
16-
<div className="relative flex h-full w-full flex-grow flex-col items-center justify-center overflow-hidden p-4">
16+
<div className="relative flex h-full w-full grow flex-col items-center justify-center overflow-hidden p-4">
1717
{/* Liquid Chrome Background */}
1818
<div className="absolute inset-0 opacity-40">
1919
<LiquidChrome
@@ -26,8 +26,8 @@ export default function NotFound() {
2626
</div>
2727

2828
{/* Gradient overlays for edge fading */}
29-
<div className="absolute inset-0 bg-gradient-to-t from-neutral-950 via-transparent" />
30-
<div className="absolute inset-0 bg-gradient-to-b from-neutral-950/50 via-transparent" />
29+
<div className="absolute inset-0 bg-linear-to-t from-neutral-950 via-transparent" />
30+
<div className="absolute inset-0 bg-linear-to-b from-neutral-950/50 via-transparent" />
3131

3232
{/* Main Content */}
3333
<div className="relative z-10 flex flex-col items-center text-center">

0 commit comments

Comments
 (0)