From d3522a9246e503632217b9021ae8d41038e64ff9 Mon Sep 17 00:00:00 2001 From: Chloe Date: Sat, 29 Jun 2024 09:14:10 +0700 Subject: [PATCH] add fix to finish homepage Signed-off-by: Chloe --- app/page.tsx | 9 +++++++-- components/home-page/about.tsx | 2 +- components/home-page/why-choose.tsx | 5 +++-- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/app/page.tsx b/app/page.tsx index fb82e4d56..e9d4357bc 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -8,7 +8,7 @@ import { Metadata } from 'next'; import { Suspense } from 'react'; export const runtime = 'edge'; -const { SITE_NAME } = process.env; +const { SITE_NAME, STORE_PREFIX } = process.env; export async function generateMetadata(): Promise { return { @@ -20,6 +20,11 @@ export async function generateMetadata(): Promise { }; } +const manufactureVariant: Record = { + 'reman-transmission': 'transmissions', + 'car-part-planet': 'home' +}; + export default async function HomePage() { return ( <> @@ -35,7 +40,7 @@ export default async function HomePage() { - + diff --git a/components/home-page/about.tsx b/components/home-page/about.tsx index 745af7d02..cfee67a03 100644 --- a/components/home-page/about.tsx +++ b/components/home-page/about.tsx @@ -37,7 +37,7 @@ const About = async () => {
-

Engine & Transmission Experts

+

{aboutUs.title}

{introduction ? : null} diff --git a/components/home-page/why-choose.tsx b/components/home-page/why-choose.tsx index f066eb721..68428b0a3 100644 --- a/components/home-page/why-choose.tsx +++ b/components/home-page/why-choose.tsx @@ -27,8 +27,9 @@ const WhyChoose = async () => {