fix(docs): pass missing sourceCode prop to Wrapper component (#28901)
Co-authored-by: [email protected] <[email protected]> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
d865ad81ab
commit
a1587f2806
1 file changed
+2
-2
@@ -17,11 +17,11 @@ export default async function Page(props: {
|
||||
params: Promise<{ mdxPath?: string[] }>;
|
||||
}) {
|
||||
const params = await props.params;
|
||||
const { default: MDXContent, toc, metadata } = await importPage(
|
||||
const { default: MDXContent, toc, metadata, sourceCode } = await importPage(
|
||||
params.mdxPath,
|
||||
);
|
||||
return (
|
||||
<Wrapper toc={toc} metadata={metadata}>
|
||||
<Wrapper toc={toc} metadata={metadata} sourceCode={sourceCode}>
|
||||
<MDXContent {...props} params={params} />
|
||||
</Wrapper>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user