diff --git a/app/(dashboard)/cars/fuel-types/[fuelType]/page.tsx b/app/(dashboard)/cars/fuel-types/[fuelType]/page.tsx index 74ceb69..a83346f 100644 --- a/app/(dashboard)/cars/fuel-types/[fuelType]/page.tsx +++ b/app/(dashboard)/cars/fuel-types/[fuelType]/page.tsx @@ -26,19 +26,11 @@ export const generateMetadata = async (props: { searchParams: SearchParams; }): Promise => { const params = await props.params; - const searchParams = await props.searchParams; const { fuelType } = params; - let month = searchParams?.month; - - if (!month) { - const latestMonth = await fetchApi(`${API_URL}/months/latest`); - month = latestMonth.cars; - } const formattedFuelType = deslugify(fuelType); const title = `${formattedFuelType} Cars in Singapore`; const description = `Explore registration trends and statistics for ${formattedFuelType} cars in Singapore.`; - // const images = `/api/og?type=${fuelType}&month=${month}`; const pageUrl = `/cars/fuel-types/${fuelType}`; return { diff --git a/app/(dashboard)/layout.tsx b/app/(dashboard)/layout.tsx index 4381c63..eb04a2e 100644 --- a/app/(dashboard)/layout.tsx +++ b/app/(dashboard)/layout.tsx @@ -1,4 +1,4 @@ -import React, { type ReactNode, Suspense } from "react"; +import React, { type ReactNode } from "react"; import { Inter } from "next/font/google"; import Script from "next/script"; import { GoogleAnalytics } from "@next/third-parties/google";