Skip to content

Commit bd35c8c

Browse files
committed
update page.tsx
1 parent db075f0 commit bd35c8c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

app/skybox/[slug]/page.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import fs from 'fs';
22
import path from 'path';
3-
import Image from 'next/image';
43
import SunParams from '@/app/ui/sunparameters';
54
import FogParams from '@/app/ui/fogparameters';
65
import MapList from '@/app/ui/maplist';
@@ -13,7 +12,12 @@ export async function generateStaticParams() {
1312
return Object.keys(allData).map((slug) => ({ slug }));
1413
}
1514

16-
export default async function SkyboxPage({ params }: { params: { slug: string } }) {
15+
interface PageProps {
16+
params: { slug: string };
17+
searchParams?: { [key: string]: string | string[] | undefined };
18+
}
19+
20+
export default async function SkyboxPage({ params }: PageProps) {
1721
const dataPath = path.join(process.cwd(), 'public', 'data', `${params.slug}.json`);
1822
const skyboxData = JSON.parse(fs.readFileSync(dataPath, 'utf8'));
1923

0 commit comments

Comments
 (0)