Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
ruchernchong committed Dec 2, 2024
1 parent d9ec41e commit 2d0eadc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions app/(dashboard)/cars/fuel-types/[fuelType]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,11 @@ export const generateMetadata = async (props: {
searchParams: SearchParams;
}): Promise<Metadata> => {
const params = await props.params;
const searchParams = await props.searchParams;
const { fuelType } = params;
let month = searchParams?.month;

if (!month) {
const latestMonth = await fetchApi<LatestMonth>(`${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 {
Expand Down
2 changes: 1 addition & 1 deletion app/(dashboard)/layout.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down

0 comments on commit 2d0eadc

Please sign in to comment.