From ba61cd083f4a847e3917c2832702bd70b51896bb Mon Sep 17 00:00:00 2001 From: guofei Date: Wed, 23 Oct 2024 15:23:45 +0800 Subject: [PATCH] 1 --- postcss.config.mjs | 1 - src/app/[[...lang]]/page.tsx | 12 +----------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/postcss.config.mjs b/postcss.config.mjs index f734f43..ad4dadc 100644 --- a/postcss.config.mjs +++ b/postcss.config.mjs @@ -1,4 +1,3 @@ - /** @type {import('postcss-load-config').Config} */ const config = { plugins: { diff --git a/src/app/[[...lang]]/page.tsx b/src/app/[[...lang]]/page.tsx index 59aabbd..3eb7e5a 100644 --- a/src/app/[[...lang]]/page.tsx +++ b/src/app/[[...lang]]/page.tsx @@ -5,17 +5,7 @@ import Footer from "@/app/components/footer"; import Examples from "../components/Examples"; -type CaseType = { - img: string; -}; -export type PropsType = { - params: { - lang: string[]; - caseList: CaseType[]; - }; -}; - -export default async function Home(props: { params: { lang: string[] }; caseList: CaseType[] }) { +export default async function Home(props: { params: { lang: string[] } }) { const lang = props.params.lang || ["zh"]; const dict = await getDictionary(lang[0]);