From 8e3afb86d3653978c881a88b2c2fb68ccc91c7cc Mon Sep 17 00:00:00 2001 From: hamster1963 <1410514192@qq.com> Date: Fri, 18 Oct 2024 09:53:00 +0800 Subject: [PATCH] feat: detail page init --- app/[locale]/(main)/detail/[id]/page.tsx | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/app/[locale]/(main)/detail/[id]/page.tsx b/app/[locale]/(main)/detail/[id]/page.tsx index 47d32f6..57d462f 100644 --- a/app/[locale]/(main)/detail/[id]/page.tsx +++ b/app/[locale]/(main)/detail/[id]/page.tsx @@ -1,7 +1,25 @@ +"use client"; + +import { BackIcon } from "@/components/Icon"; +import { useLocale } from "next-intl"; +import { useRouter } from "next/navigation"; + export default function Page({ params }: { params: { id: string } }) { + + const router = useRouter(); + const locale = useLocale(); + return (
- {params.id} +
{ + router.push(`/${locale}/`); + }} + className="flex flex-none cursor-pointer font-medium items-center break-all tracking-tight gap-0.5 text-2xl" + > + + HomeDash +
); }