build fix
This commit is contained in:
parent
6783e9700b
commit
659808985b
@ -10,13 +10,7 @@ const menuItems = {
|
|||||||
missions: "https://example.com/missions"
|
missions: "https://example.com/missions"
|
||||||
}
|
}
|
||||||
|
|
||||||
type PageProps = {
|
export default async function SectionPage({ params }: { params: { section: string } }) {
|
||||||
params: {
|
|
||||||
section: string;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
export default async function SectionPage({ params }: PageProps) {
|
|
||||||
const section = params?.section ? String(params.section) : '';
|
const section = params?.section ? String(params.section) : '';
|
||||||
|
|
||||||
const iframeUrl = menuItems[section as keyof typeof menuItems];
|
const iframeUrl = menuItems[section as keyof typeof menuItems];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user