File tree Expand file tree Collapse file tree 5 files changed +9
-12
lines changed Expand file tree Collapse file tree 5 files changed +9
-12
lines changed Original file line number Diff line number Diff line change 1
- import { DocumentationPage } from "@/src/components/Pages/DocumentationPage" ;
1
+ export { DocumentationPage as default } from "@/src/components/Pages/DocumentationPage" ;
2
+
2
3
import { source } from "@/src/source" ;
3
4
import type { Metadata } from "next" ;
4
5
import { notFound } from "next/navigation" ;
@@ -21,5 +22,3 @@ export async function generateMetadata(props: {
21
22
description : page . data . description ,
22
23
} satisfies Metadata ;
23
24
}
24
-
25
- export default DocumentationPage ;
Original file line number Diff line number Diff line change 1
- import { LandingPage } from "@/src/components/Pages/LandingPage" ;
1
+ export { LandingPage as default } from "@/src/components/Pages/LandingPage" ;
2
+
2
3
import { source } from "@/src/source" ;
3
4
import type { Metadata } from "next" ;
4
5
import { notFound } from "next/navigation" ;
@@ -20,5 +21,3 @@ export async function generateMetadata(props: {
20
21
description : page . data . description ,
21
22
} satisfies Metadata ;
22
23
}
23
-
24
- export default LandingPage ;
Original file line number Diff line number Diff line change 1
- import { Homepage } from "@/src/components/Pages/Homepage" ;
2
-
3
- export default Homepage ;
1
+ export { Homepage as default } from "@/src/components/Pages/Homepage" ;
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ export async function DocumentationPage(props: {
4
4
params : Promise < { section : string ; slug : string [ ] } > ;
5
5
} ) {
6
6
const params = await props . params ;
7
- params . slug . unshift ( params . section ) ;
8
- return BasePage ( { params } ) ;
7
+ return (
8
+ < BasePage params = { { ...params , slug : [ params . section , ...params . slug ] } } />
9
+ ) ;
9
10
}
Original file line number Diff line number Diff line change @@ -4,5 +4,5 @@ export async function LandingPage(props: {
4
4
params : Promise < { section : string } > ;
5
5
} ) {
6
6
const params = await props . params ;
7
- return BasePage ( { params : { slug : [ params . section ] } } ) ;
7
+ return < BasePage params = { { ... params , slug : [ params . section ] } } /> ;
8
8
}
You can’t perform that action at this time.
0 commit comments