Skip to content

Commit

Permalink
Added type interface for Area Params
Browse files Browse the repository at this point in the history
  • Loading branch information
Shanks0465 committed Aug 28, 2024
1 parent d4ec6d9 commit eda2886
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frontend/src/app/areas/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ export async function generateStaticParams() {
}));
}

export default function Areas({ params }) {
interface ParamsType {
slug: string;
}

export default function Areas({ params }: { params: ParamsType }) {
const slug = params.slug;

return <AreaComponent slug={slug} />;
Expand Down

0 comments on commit eda2886

Please sign in to comment.