File tree Expand file tree Collapse file tree 2 files changed +13
-12
lines changed Expand file tree Collapse file tree 2 files changed +13
-12
lines changed Original file line number Diff line number Diff line change @@ -37,9 +37,8 @@ export default async function Page(props: NextPageProps<'...mdxPath'>) {
37
37
const result = await importPage ( params . mdxPath ) ;
38
38
const { default : MDXContent , toc, metadata } = result ;
39
39
return (
40
- < Wrapper toc = { toc } metadata = { metadata } >
40
+ < Wrapper toc = { toc } metadata = { metadata } bottomContent = { < ConfiguredGiscus /> } >
41
41
< MDXContent { ...props } params = { params } />
42
- < ConfiguredGiscus />
43
42
</ Wrapper >
44
43
) ;
45
44
}
Original file line number Diff line number Diff line change 3
3
import { usePathname } from 'next/navigation' ;
4
4
import { Giscus } from '@theguild/components' ;
5
5
6
- export function ConfiguredGiscus ( ) {
6
+ export function ConfiguredGiscus ( props : React . HTMLAttributes < HTMLDivElement > ) {
7
7
const route = usePathname ( ) ;
8
8
9
9
return (
10
- < Giscus
11
- // ensure giscus is reloaded when client side route is changed
12
- key = { route }
13
- repo = "graphql-hive/platform"
14
- repoId = "R_kgDOHWr5kA"
15
- category = "Docs Discussions"
16
- categoryId = "DIC_kwDOHWr5kM4CSDSS"
17
- mapping = "pathname"
18
- />
10
+ < div { ...props } >
11
+ < Giscus
12
+ // ensure giscus is reloaded when client side route is changed
13
+ key = { route }
14
+ repo = "graphql-hive/platform"
15
+ repoId = "R_kgDOHWr5kA"
16
+ category = "Docs Discussions"
17
+ categoryId = "DIC_kwDOHWr5kM4CSDSS"
18
+ mapping = "pathname"
19
+ />
20
+ </ div >
19
21
) ;
20
22
}
You can’t perform that action at this time.
0 commit comments