Skip to content

Commit

Permalink
Fix types in COE page props
Browse files Browse the repository at this point in the history
  • Loading branch information
ruchernchong committed Oct 13, 2024
1 parent 50ed958 commit 583018e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/coe/(prices)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ import { fetchApi } from "@/utils/fetchApi";
import type { Metadata } from "next";
import type { WebPage, WithContext } from "schema-dts";

interface Props {
searchParams: { [key: string]: string };
}

export const generateMetadata = async (): Promise<Metadata> => {
const pageUrl = "/coe";

Expand All @@ -35,7 +39,7 @@ export const generateMetadata = async (): Promise<Metadata> => {
};
};

const COEPricesPage = async ({ searchParams }) => {
const COEPricesPage = async ({ searchParams }: Props) => {
const params = new URLSearchParams(searchParams);
params.append("sort", "month");
params.append("orderBy", "asc");
Expand Down

0 comments on commit 583018e

Please sign in to comment.