diff --git a/packages/web/app/[locale]/layout.tsx b/packages/web/app/[locale]/layout.tsx index 80f2cfaee..f16984d36 100644 --- a/packages/web/app/[locale]/layout.tsx +++ b/packages/web/app/[locale]/layout.tsx @@ -1,5 +1,5 @@ import type { Metadata } from "next" -import type { JSX } from "react" +import type { JSX, ReactNode } from "react" import { notFound } from "next/navigation" import { hasLocale } from "next-intl" import { setRequestLocale } from "next-intl/server" @@ -8,10 +8,10 @@ import { routing } from "@/i18n/routing" export const metadata: Metadata = { description: - "Meet Sisyphus: The batteries-included agent that codes like you. Multi-model orchestration, background agents, 40+ lifecycle hooks.", + "Meet Sisyphus: The batteries-included agent that codes like you. Multi-model orchestration, background agents, 54+ lifecycle hooks.", } -export function generateStaticParams() { +export function generateStaticParams(): Array<{ readonly locale: string }> { return routing.locales.map((locale) => ({ locale })) } @@ -19,7 +19,7 @@ export default async function LocaleLayout({ children, params, }: { - children: React.ReactNode + children: ReactNode params: Promise<{ locale: string }> }): Promise { const { locale } = await params diff --git a/packages/web/components/footer.tsx b/packages/web/components/footer.tsx index 554a50aba..9f671f06e 100644 --- a/packages/web/components/footer.tsx +++ b/packages/web/components/footer.tsx @@ -1,7 +1,8 @@ +import type { JSX } from "react" import { getTranslations } from "next-intl/server" import { Link } from "@/i18n/routing" -export async function Footer({ locale }: { locale?: string } = {}) { +export async function Footer({ locale }: { readonly locale?: string } = {}): Promise { const t = locale ? await getTranslations({ locale, namespace: "footer" }) : await getTranslations("footer") @@ -27,7 +28,7 @@ export async function Footer({ locale }: { locale?: string } = {}) { {t("github")} diff --git a/packages/web/components/nav-header.tsx b/packages/web/components/nav-header.tsx index 39ee438aa..057a60fef 100644 --- a/packages/web/components/nav-header.tsx +++ b/packages/web/components/nav-header.tsx @@ -1,5 +1,6 @@ "use client" +import type { JSX } from "react" import { useState } from "react" import { useTranslations } from "next-intl" import { Menu, X } from "lucide-react" @@ -7,7 +8,7 @@ import { Badge } from "@/components/ui/badge" import { Button } from "@/components/ui/button" import { Link } from "@/i18n/routing" -function GitHubMark({ className }: { readonly className?: string }) { +function GitHubMark({ className }: { readonly className?: string }): JSX.Element { return (