fix(docs): pass missing sourceCode prop to Wrapper component (#28901)
Co-authored-by: keith@cal.com <keithwillcode@gmail.com> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
keith@cal.com
parent
d865ad81ab
commit
a1587f2806
@@ -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